Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX release] Deprecate immediateObserver #11677

Merged
merged 1 commit into from
Jul 7, 2015

Conversation

cibernox
Copy link
Contributor

@cibernox cibernox commented Jul 7, 2015

  • Ember.immediateObserver was already deprecated, but it's prototype
    extension counterpart wasn't. It's not used internally at all.
  • Improve beforeObserver deprecations.
  • I improved Ember.deprecateFunc to accept an options object. Useful to provide the url of a deprecation

@cibernox
Copy link
Contributor Author

cibernox commented Jul 7, 2015

Closes #11566 and add proper url to the deprecations added in #11671

@cibernox cibernox force-pushed the deprecate_immediate_observer branch from 26cd9c0 to 84bbd5c Compare July 7, 2015 18:41
* Ember.immediateObserver was already deprecated, but it's prototype
  extension counterpart wasn't. It's not used internally at all.

* Improve beforeObserver deprecations.

* I had to improve `Ember.deprecateFunc` to accept an options object
@cibernox cibernox force-pushed the deprecate_immediate_observer branch from 84bbd5c to b1b5d0b Compare July 7, 2015 18:41
@mixonic
Copy link
Member

mixonic commented Jul 7, 2015

Thank you! :-D

@mixonic mixonic merged this pull request into emberjs:master Jul 7, 2015
@cibernox cibernox deleted the deprecate_immediate_observer branch July 7, 2015 20:02
let [message, options, func] = args;
return function() {
Ember.deprecate(message, false, options);
return func.call(this, arguments);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just spotted this. It should be func.apply(this, arguments), not call :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 0081ebd

stefanpenner added a commit that referenced this pull request Jul 8, 2015
stefanpenner added a commit that referenced this pull request Jul 12, 2015
Re: #11677 (comment)

restored by @stefanpenner
(cherry picked from commit 5550de1)
stefanpenner added a commit that referenced this pull request Jul 12, 2015
Re: #11677 (comment)

restored by @stefanpenner
(cherry picked from commit 5550de1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants