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 id25258
push userryanvm@gmail.com
push dateTue, 10 Sep 2013 20:39:40 +0000
treeherdermozilla-central@ccd82434a1fc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs914066
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;