Bug 582684 - Fix syntax problem from bug 581958 [r=vingtetun]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 28 Jul 2010 15:43:13 -0400
changeset 66404 01859d900b88e37e2cc72d35b1ffe66148a189e8
parent 66403 2cf4257aaa995f59c2a4a3d189bf4c0c212b1dc0
child 66405 32aaa661b24f600c576a3885e0f23389512e3576
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs582684, 581958
Bug 582684 - Fix syntax problem from bug 581958 [r=vingtetun]
mobile/chrome/content/bindings/browser.xml
--- a/mobile/chrome/content/bindings/browser.xml
+++ b/mobile/chrome/content/bindings/browser.xml
@@ -183,19 +183,20 @@
             });
 
             this._browser.messageManager.sendAsyncMessage("WebProgress:AddProgressListener", {
               notifyFlags: aNotifyFlags,
             });
           },
 
           removeProgressListener: function(aListener) {
+            let self = this;
             function hasFilter(item) {
               if (item.listener == aListener)
-                this._browser.messageManager.sendAsyncMessage("WebProgress:RemoveProgressListener", {
+                self._browser.messageManager.sendAsyncMessage("WebProgress:RemoveProgressListener", {
                   notifyFlags: item.flags,
                 });
               return item.listener != aListener;
             }
 
             this._listeners = this._listeners.filter(hasFilter);
           },
           get DOMWindow() { throw "DOMWindow: Not Remoteable" },