Fix two silly typos in implementation.js
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 06 Jun 2011 14:21:48 -0600
changeset 230 4a024a59d8a2
parent 229 c77b3c2f5c08
child 231 86474be03ddb
Fix two silly typos in implementation.js
implementation.js
--- a/implementation.js	Mon Jun 06 13:59:32 2011 -0600
+++ b/implementation.js	Mon Jun 06 14:21:48 2011 -0600
@@ -339,7 +339,7 @@
 		stop = stop.childNodes[range.endOffset];
 	} else {
 		// This node and/or some of its children might be contained
-		stop = nextNodeDescendants(node);
+		stop = nextNodeDescendants(stop);
 	}
 
 	var nodeList = [];
@@ -382,7 +382,7 @@
 		stop = stop.childNodes[range.endOffset];
 	} else {
 		// This node and/or some of its children might be contained
-		stop = nextNodeDescendants(node);
+		stop = nextNodeDescendants(stop);
 	}
 
 	var nodeList = [];