Fix exception in indent implementation
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 02 May 2011 16:00:59 -0600
changeset 81 08585da74e99
parent 80 5091444fe74e
child 82 68df597a4835
Fix exception in indent implementation
implementation.js
--- a/implementation.js	Mon May 02 15:58:53 2011 -0600
+++ b/implementation.js	Mon May 02 16:00:59 2011 -0600
@@ -2101,7 +2101,7 @@
 		var end = newRange.endContainer.childNodes[newRange.endOffset];
 		if (isHtmlElement(end) && end.tagName == "BR") {
 			// "Remove that br from its parent."
-			end.parentNode.removeChild(br);
+			end.parentNode.removeChild(end);
 
 			// "While the end offset of new range is equal to the length of its
 			// end node, set the end of new range to (parent of end node, 1 +