Bug 1059485: Declare variable "LayoutHelpers" to fix JS strict warning in LayoutHelpers.jsm. r=jwalker
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 28 Aug 2014 08:41:24 -0700
changeset 202226 d3636970a300be806482b9b5ad00db036166c67b
parent 202225 7f9a9cfeabe72b789884b0047860102929353153
child 202227 aed61458371b3d342433d9543c89ea6001ef3043
push idunknown
push userunknown
push dateunknown
reviewersjwalker
bugs1059485
milestone34.0a1
Bug 1059485: Declare variable "LayoutHelpers" to fix JS strict warning in LayoutHelpers.jsm. r=jwalker
toolkit/devtools/LayoutHelpers.jsm
--- a/toolkit/devtools/LayoutHelpers.jsm
+++ b/toolkit/devtools/LayoutHelpers.jsm
@@ -10,22 +10,24 @@ const Cr = Components.results;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 XPCOMUtils.defineLazyModuleGetter(this, "Services",
   "resource://gre/modules/Services.jsm");
 
 this.EXPORTED_SYMBOLS = ["LayoutHelpers"];
 
-this.LayoutHelpers = LayoutHelpers = function(aTopLevelWindow) {
+let LayoutHelpers = function(aTopLevelWindow) {
   this._topDocShell = aTopLevelWindow.QueryInterface(Ci.nsIInterfaceRequestor)
                                      .getInterface(Ci.nsIWebNavigation)
                                      .QueryInterface(Ci.nsIDocShell);
 };
 
+this.LayoutHelpers = LayoutHelpers;
+
 LayoutHelpers.prototype = {
 
   /**
    * Get box quads adjusted for iframes and zoom level.
 
    * @param {DOMNode} node
    *        The node for which we are to get the box model region quads
    * @param  {String} region