better emphasis behaviour compatibility

This commit is contained in:
Yessiest 2012-01-01 04:03:02 +04:00
parent 4d4d8cfc4c
commit 4c484f64fc
1 changed files with 2 additions and 10 deletions

View File

@ -1338,11 +1338,7 @@ module PointBlank
when String
bfr[-1]
when ::PointBlank::DOM::DOMObject
if bfr.is_a?(::PointBlank::DOM::Text)
bfr.content[-1]
else
extract_left(bfr.children.last)
end
"."
when Array
bfr.first[-1]
end
@ -1356,11 +1352,7 @@ module PointBlank
when String
afr[0]
when ::PointBlank::DOM::DOMObject
if afr.is_a?(::PointBlank::DOM::Text)
afr.content[0]
else
extract_left(afr.children.first)
end
"."
when Array
afr.first[0]
end