Clear globalRange between runs
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Wed, 13 Jul 2011 09:20:53 -0600
changeset 410 4cb683673c4e
parent 409 4f1626e3a442
child 411 2a28ff5625f3
Clear globalRange between runs

Previously, in the implementation, if no range was passed, globalRange
would be set to getActiveRange() which would . . . return globalRange.
implementation.js
--- a/implementation.js	Tue Jul 12 15:58:57 2011 -0600
+++ b/implementation.js	Wed Jul 13 09:20:53 2011 -0600
@@ -527,6 +527,7 @@
 // Helper function for common behavior.
 function setupEditCommandMethod(command, prop, range) {
 	// Set up our global range magic
+	globalRange = null;
 	if (typeof range != "undefined") {
 		globalRange = range;
 	} else {