Bug 945583: [Australis] Use "let" to declare loop variable in toolbar.xml, to fix strict JS build warning. r=jaws
☠☠ backed out by 560c7b19387b ☠ ☠
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 02 Dec 2013 20:16:12 -0800
changeset 174175 c9322fc3ef1bc839b134737e5fccda5c34bc8dcb
parent 174174 0a5136207e2f93fe486062fd34ae746f6cbeec57
child 174176 ddd2dbbd9b2df8155d02c27fad4094ac1f545da2
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs945583
milestone28.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 945583: [Australis] Use "let" to declare loop variable in toolbar.xml, to fix strict JS build warning. r=jaws
browser/components/customizableui/content/toolbar.xml
--- a/browser/components/customizableui/content/toolbar.xml
+++ b/browser/components/customizableui/content/toolbar.xml
@@ -409,17 +409,17 @@
                 toolbox.palette = node;
                 toolbox.removeChild(node);
               }
             }
           }
 
           // pass the current set of children for comparison with placements:
           let children = [];
-          for (node of this.childNodes) {
+          for (let node of this.childNodes) {
             if (node.getAttribute("skipintoolbarset") != "true" && node.id) {
               // Force everything to be removable so that buildArea can chuck stuff
               // out if the user has customized things / we've been here before:
               if (!this._whiteListed.has(node.id)) {
                 node.setAttribute("removable", "true");
               }
               children.push(node);
             }