ember-modules-codemod
ember-modules-codemod copied to clipboard
Direct usage of `Ember` made invalid
Had code like
return Ember.observer.apply(Ember, keys.concat(function () {
Ember.run.throttle(this, throttled[0], throttled[1], throttled[2] || false);
}));
which was turned into
return observer.apply(Ember, keys.concat(function () {
throttle(this, throttled[0], throttled[1], throttled[2] || false);
}));
After the codemod, Ember
no longer existed. In my case I wasn't using this util anymore, so not an issue, but could be an issue for other cases.