Uncomment that for xtra stability.
This commit is contained in:
parent
0e3222312c
commit
fde52b4402
@ -16,7 +16,7 @@ Linkify =
|
|||||||
range = d.createRange()
|
range = d.createRange()
|
||||||
for link in links
|
for link in links
|
||||||
boundaries = Linkify.find link, walker
|
boundaries = Linkify.find link, walker
|
||||||
# break unless boundaries
|
continue unless boundaries
|
||||||
anchor = Linkify.createLink link
|
anchor = Linkify.createLink link
|
||||||
if Linkify.surround anchor, range, boundaries
|
if Linkify.surround anchor, range, boundaries
|
||||||
if (parent = anchor.parentNode).href is anchor.href
|
if (parent = anchor.parentNode).href is anchor.href
|
||||||
@ -35,7 +35,7 @@ Linkify =
|
|||||||
while node = walker.nextNode()
|
while node = walker.nextNode()
|
||||||
text += node.data
|
text += node.data
|
||||||
break if text.indexOf(link) > -1
|
break if text.indexOf(link) > -1
|
||||||
# return unless node
|
return unless node
|
||||||
startNode = endNode = node
|
startNode = endNode = node
|
||||||
|
|
||||||
# Walk backwards to find the startNode.
|
# Walk backwards to find the startNode.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user