Bug 1026265 - DataStore API - Name error in a property of DataStoreChangeNotifier. r=ehsan, a=lmandel
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 17 Jun 2014 19:59:22 +0100
changeset 208376 3c08ec5b0b002c5c9d04877213ca9a0adaf5767f
parent 208375 5628e4770c967bbb0bac99fe665c2549f1661b0e
child 208377 b6fe1fea0b30ef3ed438887beb3184c82f18c8f7
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, lmandel
bugs1026265
milestone32.0a2
Bug 1026265 - DataStore API - Name error in a property of DataStoreChangeNotifier. r=ehsan, a=lmandel
dom/datastore/DataStoreChangeNotifier.jsm
--- a/dom/datastore/DataStoreChangeNotifier.jsm
+++ b/dom/datastore/DataStoreChangeNotifier.jsm
@@ -109,17 +109,17 @@ this.DataStoreChangeNotifier = {
           if (this.children[i].mm == aMessage.target) {
             debug("Unregister index: " + i);
 
             var pos = this.children[i].windows.indexOf(aMessage.data.innerWindowID);
             if (pos != -1) {
               this.children[i].windows.splice(pos, 1);
             }
 
-            if (this.children[i].window.length) {
+            if (this.children[i].windows.length) {
               continue;
             }
 
             debug("Unregister delete index: " + i);
             this.children.splice(i, 1);
             --i;
           }
         }