Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
fix loaderConfig global leak
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 13, 2015
1 parent 32df36b commit fb50093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Builder.prototype.reset = function(baseLoader) {
loader.translate = pluginLoader.translate = loader.originalHooks.translate;
loader.instantiate = pluginLoader.instantiate = loader.originalHooks.instantiate;

loaderConfig = loader.config;
var loaderConfig = loader.config;
loader.config = function(cfg) {
loaderConfig.call(loader, cfg);
loader.pluginLoader.config(cfg);
Expand Down

0 comments on commit fb50093

Please sign in to comment.