From c0e21d3ba2427df3f35202947280014baf57538a Mon Sep 17 00:00:00 2001 From: Teddy Zeenny Date: Sat, 13 Jun 2015 23:48:42 +0300 Subject: [PATCH] [BUGFIX release] Ember.View.views should be present --- packages/ember-views/lib/views/view.js | 32 ++++++++++++++------------ 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/packages/ember-views/lib/views/view.js b/packages/ember-views/lib/views/view.js index 573a94a7cfa..4b623238221 100644 --- a/packages/ember-views/lib/views/view.js +++ b/packages/ember-views/lib/views/view.js @@ -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.`,