Patch ember-cloaking to work in Ember 1.7 as well as 1.6

This commit is contained in:
Robin Ward 2014-10-29 14:21:05 -04:00
parent 40684ff7e6
commit f58c0e1f22

View file

@ -406,7 +406,12 @@
if (containedView && (containedView._state || containedView.state) !== 'inDOM') {
containedView.triggerRecursively('willInsertElement');
containedView.renderToBuffer(buffer);
containedView.transitionTo('inDOM');
if (Ember.View.prototype._transitionTo) {
containedView._transitionTo('inDOM');
} else {
containedView.transitionTo('inDOM');
}
Em.run.schedule('afterRender', function() {
if(self._containedView) {
self._containedView.triggerRecursively('didInsertElement');