Fix bug from 4e446d35 "Allow deleting non-active ranges"
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Tue, 07 Jun 2011 11:54:11 -0600
changeset 243 598cb73c6953
parent 242 30cea2fff059
child 244 c3c95107f265
Fix bug from 4e446d35 "Allow deleting non-active ranges"
implementation.js
--- a/implementation.js	Tue Jun 07 11:50:52 2011 -0600
+++ b/implementation.js	Tue Jun 07 11:54:11 2011 -0600
@@ -3613,7 +3613,7 @@
 		}
 
 		// "Delete the contents of the active range."
-		deleteContents(activeRange);
+		deleteContents(range);
 
 		// "Let img be the result of calling createElement("img") on the
 		// context object."
@@ -3650,7 +3650,7 @@
 
 		case "insertparagraph":
 		// "Delete the contents of the active range."
-		deleteContents(activeRange);
+		deleteContents(range);
 
 		// "Let node and offset be range's start node and offset."
 		var node = range.startContainer;