ember-modules-codemod icon indicating copy to clipboard operation
ember-modules-codemod copied to clipboard

Direct usage of `Ember` made invalid

Open knownasilya opened this issue 7 years ago • 0 comments

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.

knownasilya avatar Sep 23 '17 03:09 knownasilya