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] Ember.View.views should be present #11956

Merged
merged 1 commit into from
Aug 2, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions packages/ember-views/lib/views/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1511,22 +1511,24 @@ var View = CoreView.extend(
// once the view has been inserted into the DOM, legal manipulations
// are done on the DOM element.

/**
Global views hash
View.reopenClass({
/**
Global views hash

@property views
@static
@type Object
@private
*/
View.views = {};

// If someone overrides the child views computed property when
// defining their class, we want to be able to process the user's
// supplied childViews and then restore the original computed property
// at view initialization time. This happens in Ember.ContainerView's init
// method.
View.childViewsProperty = childViewsProperty;
@property views
@static
@type Object
@private
*/
views: {},

// If someone overrides the child views computed property when
// defining their class, we want to be able to process the user's
// supplied childViews and then restore the original computed property
// at view initialization time. This happens in Ember.ContainerView's init
// method.
childViewsProperty
});

function viewDeprecationMessage() {
Ember.deprecate(`Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy.`,
Expand Down