Range.setEndAfter doesn't work in fragments

But Range.setEnd does?
This commit is contained in:
Zixaphir 2013-08-12 00:33:34 -07:00
parent a8ee9b3992
commit 22c4fdede5
4 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.2.25 - 2013-08-11
* 4chan X - Version 1.2.25 - 2013-08-12
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -19,7 +19,7 @@
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript==
/*
* 4chan X - Version 1.2.25 - 2013-08-11
* 4chan X - Version 1.2.25 - 2013-08-12
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -4476,7 +4476,7 @@
}
}
if (range.collapsed) {
range.setEndAfter(node);
range.setEnd(node, node.data.length);
}
return range;
},

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* 4chan X - Version 1.2.25 - 2013-08-11
* 4chan X - Version 1.2.25 - 2013-08-12
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -4481,7 +4481,7 @@
}
}
if (range.collapsed) {
range.setEndAfter(node);
range.setEnd(node, node.data.length);
}
return range;
},

View File

@ -107,7 +107,7 @@ Linkify =
return range
if range.collapsed
range.setEndAfter node
range.setEnd node, node.data.length
range