Fix implementation bug
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 30 May 2011 14:42:15 -0600
changeset 204 9e4fccc76232
parent 203 152edd1e3cca
child 205 dcfd88b08738
Fix implementation bug

Seemed to not be causing any issues in my tests until I tried
implementing the next commit.
implementation.js
--- a/implementation.js	Mon May 30 14:31:34 2011 -0600
+++ b/implementation.js	Mon May 30 14:42:15 2011 -0600
@@ -325,7 +325,7 @@
 
 	var stop = range.endContainer;
 	if (stop.hasChildNodes()
-	&& range.endOffset < node.childNodes.length) {
+	&& range.endOffset < stop.childNodes.length) {
 		// The node after the last contained node is a child
 		stop = stop.childNodes[range.endOffset];
 	} else {