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

[DEPRECATION] (WIP) calling this._super when there is no method on parent class #15082

Closed
wants to merge 4 commits into from

Conversation

givanse
Copy link

@givanse givanse commented Mar 27, 2017

#14780

  • document didDestroyElement, only available in interactive mode

*
*/
/*
deprecate(
Copy link
Author

Choose a reason for hiding this comment

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

copy-pasta from within this file as a sanity check, it errors with:

Uncaught Error: Ember.required is deprecated as its behavior is inconsistent and unreliable.
Uncaught TypeError: Cannot read property 'registerDeprecationHandler' of undefined
Uncaught TypeError: Cannot read property 'extend' of undefined

@@ -129,6 +138,23 @@ function giveMethodSuper(obj, key, method, values, descs) {

// Only wrap the new method if the original method was a function
if (superMethod === undefined || 'function' !== typeof superMethod) {
/*
deprecate(
Copy link
Author

Choose a reason for hiding this comment

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

Uncaught Error: Calling `_super` when there is no method on the parent class is deprecated.

🤔

Copy link
Author

Choose a reason for hiding this comment

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

deprecate is meant to be executed at app runtime

@givanse givanse changed the title Deprecate calling this._super when there is no method on parent class. [DEPRECATE] calling this._super when there is no method on parent class Mar 31, 2017
@givanse givanse changed the title [DEPRECATE] calling this._super when there is no method on parent class [DEPRECATION] calling this._super when there is no method on parent class Mar 31, 2017
@givanse givanse changed the title [DEPRECATION] calling this._super when there is no method on parent class [DEPRECATION] (WIP) calling this._super when there is no method on parent class Apr 3, 2017
@mmun mmun self-assigned this Feb 25, 2018
@locks
Copy link
Contributor

locks commented Aug 16, 2019

Apologies for letting this work linger all this time 😞 At this point I think rebasing this PR would be more work than starting anew so I'm closing it for now.

@locks locks closed this Aug 16, 2019
@givanse givanse deleted the this_super branch September 17, 2020 21:56
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.

3 participants