Skip to content

Commit

Permalink
use factorFor result for factory arg in modifierManager
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer516 committed Mar 2, 2019
1 parent 5a4ba19 commit 9ef46e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vendor/ember-modifier-manager-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ import { lte, gte } from 'ember-compatibility-helpers';
let manager = managerFactory(owner);

if (gte('3.6.0-alpha.1')) {
return new Polyfilled_CustomModifierDefinition(name, modifier.class, manager);
return new Polyfilled_CustomModifierDefinition(name, modifier, manager);
} else {
return new Polyfilled_CustomModifierManagerLt36(name, modifier.class, manager);
return new Polyfilled_CustomModifierManagerLt36(name, modifier, manager);
}
}
}
Expand Down Expand Up @@ -205,7 +205,7 @@ import { lte, gte } from 'ember-compatibility-helpers';
let managerFactory = getModifierManager(modifier.class);
let manager = managerFactory(owner);

return new Polyfilled_CustomModifierManagerLt36(name, modifier.class, manager);
return new Polyfilled_CustomModifierManagerLt36(name, modifier, manager);
}
}

Expand Down

0 comments on commit 9ef46e6

Please sign in to comment.