Skip to content

Direct usage of Ember made invalid #49

Description

@knownasilya

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions