Bug 805808 - Initialize _activeType to 0 instead of undefined. r=margaret
authorKartikaya Gupta <kgupta@mozilla.com>
Sat, 27 Oct 2012 14:08:36 -0400
changeset 111746 dcf78e64e1bd32c776699cb5d58b41ea9020a7b4
parent 111745 3e02a25a5e7d99c8a4e006d30da92c7594fb608a
child 111747 c5428231b6f7b17a29ebd6ded683ed9b312c06b1
child 111748 43e09a8466c25bdd618cfae78bf39364ea32a80e
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersmargaret
bugs805808
milestone19.0a1
Bug 805808 - Initialize _activeType to 0 instead of undefined. r=margaret
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1591,17 +1591,17 @@ var SelectionHandler = {
 
   TYPE_NONE: 0,
   TYPE_CURSOR: 1,
   TYPE_SELECTION: 2,
 
   // Keeps track of data about the dimensions of the selection. Coordinates
   // stored here are relative to the _view window.
   cache: null,
-  _activeType: this.TYPE_NONE,
+  _activeType: 0, // TYPE_NONE
 
   // The window that holds the selection (can be a sub-frame)
   get _view() {
     if (this._viewRef)
       return this._viewRef.get();
     return null;
   },