Bug 914066 - Function declaration needs to be at the top-level. r=bsmedberg
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Tue, 10 Sep 2013 13:12:54 -0400
changeset 146389 c3384a3b42801dfecb3ea01e18dff554354a594c
parent 146388 6d8738e8dc7118fef4855c98127e58075a320b94
child 146390 27785ee9e9e0b7b5a7807e9ed82ed7f382bccd56
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbsmedberg
bugs914066
milestone26.0a1
Bug 914066 - Function declaration needs to be at the top-level. r=bsmedberg
toolkit/content/widgets/preferences.xml
--- a/toolkit/content/widgets/preferences.xml
+++ b/toolkit/content/widgets/preferences.xml
@@ -725,17 +725,17 @@
         <parameter name="aPaneElement"/>
         <body>
         <![CDATA[
           if (!aPaneElement)
             return;
 
           this._selector.selectedItem = document.getAnonymousElementByAttribute(this, "pane", aPaneElement.id);
           if (!aPaneElement.loaded) {
-            function OverlayLoadObserver(aPane)
+            let OverlayLoadObserver = function(aPane)
             {
               this._pane = aPane;
             }
             OverlayLoadObserver.prototype = { 
               _outer: this,
               observe: function (aSubject, aTopic, aData) 
               {
                 this._pane.loaded = true;