mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Patch ember-cloaking to work in Ember 1.7 as well as 1.6
This commit is contained in:
parent
40684ff7e6
commit
f58c0e1f22
1 changed files with 6 additions and 1 deletions
5
vendor/assets/javascripts/ember-cloaking.js
vendored
5
vendor/assets/javascripts/ember-cloaking.js
vendored
|
@ -406,7 +406,12 @@
|
||||||
if (containedView && (containedView._state || containedView.state) !== 'inDOM') {
|
if (containedView && (containedView._state || containedView.state) !== 'inDOM') {
|
||||||
containedView.triggerRecursively('willInsertElement');
|
containedView.triggerRecursively('willInsertElement');
|
||||||
containedView.renderToBuffer(buffer);
|
containedView.renderToBuffer(buffer);
|
||||||
|
if (Ember.View.prototype._transitionTo) {
|
||||||
|
containedView._transitionTo('inDOM');
|
||||||
|
} else {
|
||||||
containedView.transitionTo('inDOM');
|
containedView.transitionTo('inDOM');
|
||||||
|
}
|
||||||
|
|
||||||
Em.run.schedule('afterRender', function() {
|
Em.run.schedule('afterRender', function() {
|
||||||
if(self._containedView) {
|
if(self._containedView) {
|
||||||
self._containedView.triggerRecursively('didInsertElement');
|
self._containedView.triggerRecursively('didInsertElement');
|
||||||
|
|
Loading…
Reference in a new issue