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 beta] Change the Ember.View global to have a deprecation warning on init #11387

Merged
merged 1 commit into from
Jun 9, 2015

Conversation

bantic
Copy link
Member

@bantic bantic commented Jun 9, 2015

To do:

Refs #11377

const DeprecatedView = View.extend({
init() {
this._super(...arguments);
Ember.deprecate(`Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy.`, !!Ember.ENV.ENABLE_LEGACY_VIEW_SUPPORT, { url: 'http://emberjs.com/deprecations/v1.x/#toc_ember-view' });
Copy link
Member

Choose a reason for hiding this comment

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

This is likely annoying, but I would prefer that the flag itself is also private. Can you underscore?

Copy link
Member Author

Choose a reason for hiding this comment

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

fine with me! I'll make the change

@bantic
Copy link
Member Author

bantic commented Jun 9, 2015

There are many places where the now-deprecated Ember.View global is used in tests. I will fix those, which should fix the CI failures.

…ing on init

  * Use underscored env variable _ENABLE_LEGACY_VIEW_SUPPORT to remove deprecation.
  * Change tests that used the Ember.View global directly to import View from "ember-views/views/view" instead

Refs emberjs#11377
@bantic bantic force-pushed the deprecate-ember-view-global branch from 96281bf to 1cfb36d Compare June 9, 2015 21:25
mixonic added a commit that referenced this pull request Jun 9, 2015
[BUGFIX beta] Change the Ember.View global to have a deprecation warning on init
@mixonic mixonic merged commit 7cf3535 into emberjs:master Jun 9, 2015
@mixonic mixonic deleted the deprecate-ember-view-global branch June 9, 2015 22:13
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