Skip to content

Commit

Permalink
Merge pull request #11956 from rwjblue/expose-view-views
Browse files Browse the repository at this point in the history
[BUGFIX release] Ember.View.views should be present
  • Loading branch information
rwjblue committed Aug 2, 2015
2 parents be01a62 + c0e21d3 commit b9b7c5b
Showing 1 changed file with 17 additions and 15 deletions.
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

0 comments on commit b9b7c5b

Please sign in to comment.