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 159296 c3384a3b42801dfecb3ea01e18dff554354a594c
parent 159295 6d8738e8dc7118fef4855c98127e58075a320b94
child 159297 27785ee9e9e0b7b5a7807e9ed82ed7f382bccd56
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [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;