Skip to content

Commit

Permalink
Prepare for the module.runSetters future.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed May 9, 2017
1 parent 9b68514 commit 1b73016
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.js
Expand Up @@ -326,8 +326,11 @@ makeInstaller = function (options) {
module.loaded = true;
}

if (isFunction(module.runModuleSetters)) {
module.runModuleSetters();
// The module.runModuleSetters method will be deprecated in favor of
// just module.runSetters: https://github.com/benjamn/reify/pull/160
var runSetters = module.runSetters || module.runModuleSetters;
if (isFunction(runSetters)) {
runSetters.call(module);
}

return module.exports;
Expand Down

0 comments on commit 1b73016

Please sign in to comment.