Skip to content

Fixing deprecation message. #15

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

Merged
merged 1 commit into from
Aug 25, 2016
Merged

Fixing deprecation message. #15

merged 1 commit into from
Aug 25, 2016

Conversation

lcpriest
Copy link
Contributor

What Changed & Why

this._super is deprecated

DEPRECATION: Overriding init without calling this._super is deprecated. Please call this._super(), addon: `undefined`
    at Object.<anonymous> (app/node_modules/ember-cli-deploy-display-revisions/lib/scm-table.js:8:29)

@@ -5,7 +5,7 @@ var Promise = require('ember-cli/lib/ext/promise');

module.exports = CoreObject.extend({
init: function(plugin, revisions) {
this._super.init && this._super.init.apply(this, arguments);
this._super();
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for this @lcpriest . Should you be passing the args through to this._super?

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 was under the impression that was automatic - I'll update now.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, sorry mate. You might be right. I might be getting confused. I assume you've tested this to make sure it works then?

Copy link
Contributor Author

@lcpriest lcpriest Aug 22, 2016

Choose a reason for hiding this comment

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

To be honest, no. Should I just run the test suite? I wasn't using it directly in my code, it was a dependency of a package I was using.

@ghedamat ghedamat merged commit c504a83 into ember-cli-deploy:master Aug 25, 2016
@ghedamat
Copy link
Contributor

sg @lcpriest

thanks
/cc @achambers

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