-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[CLEANUP beta] Remove beforeObserver family from the public API #11796
Conversation
@private | ||
*/ | ||
FunctionPrototype.observesBefore = function () { | ||
var watched = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this appears to have have been deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean, it was not deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I mean it did no spew a deprecation warning when used. Is there a sibling PR that introduces that deprecation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya, good catch.
@cibernox - We need to land a deprecation for this in release before removing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't. I'll create one. Put this on hold in the meanwhile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a rebase now that #11798 is merged. |
* family inclides `Ember.beforeObserver`, `Ember.addBeforeObserver`, `Ember.removeBeforeObserver`, `Ember.beforeObserversFor`, `Ember._suspendBeforeObserver`, `Ember._suspendBeforeObservers` * I noticed that `beforeObserversFor`, `_suspendBeforeObserver` and `_suspendBeforeObserves` were not used at all, not even internally. I've also checked for usages of it in ember-data, liquid-fire and other "official" porjects. Nothing. So those two are removed completely. * For symetry, I've also removed the `Function.prototype.observesBefore` counterpart.
3011b73
to
75569a9
Compare
Rebased |
[CLEANUP beta] Remove beforeObserver family from the public API
SortableMixin from ember-legacy-controllers breaks as it uses beforeObserver :( |
Ember.beforeObserver
,Ember.addBeforeObserver
,Ember.removeBeforeObserver
,Ember.beforeObserversFor
,Ember._suspendBeforeObserver
,Ember._suspendBeforeObservers
beforeObserversFor
,_suspendBeforeObserver
and_suspendBeforeObserves
were not used at all, not even internally. I've also checked for
usages of it in ember-data, liquid-fire and other "official" porjects.
Nothing. So those two are removed completely.
Function.prototype.observesBefore
counterpart.