Bug 1013905 - Correctly bind lazyRequireGetter(); r=jwalker
authorManish Goregaokar <manishearth@gmail.com>
Wed, 21 May 2014 04:36:00 +0200
changeset 184516 6355753d755bb45f3502ef3d88503069c662d074
parent 184515 b472fae177162e98f7becd1697c9eb4b5707848c
child 184517 2c80f01b0e4496ea10206fcc7bf27cae01d0e3ca
push id43874
push userkwierso@gmail.com
push dateFri, 23 May 2014 00:55:10 +0000
treeherdermozilla-inbound@3078d2486cab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalker
bugs1013905
milestone32.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 1013905 - Correctly bind lazyRequireGetter(); r=jwalker
toolkit/devtools/Loader.jsm
--- a/toolkit/devtools/Loader.jsm
+++ b/toolkit/devtools/Loader.jsm
@@ -258,16 +258,17 @@ SrcdirProvider.prototype = {
  * The main devtools API.
  * In addition to a few loader-related details, this object will also include all
  * exports from the main module.  The standard instance of this loader is
  * exported as |devtools| below, but if a fresh copy of the loader is needed,
  * then a new one can also be created.
  */
 this.DevToolsLoader = function DevToolsLoader() {
   this.require = this.require.bind(this);
+  this.lazyRequireGetter = this.lazyRequireGetter.bind(this);
 };
 
 DevToolsLoader.prototype = {
   get provider() {
     if (!this._provider) {
       this._chooseProvider();
     }
     return this._provider;