mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: More safety for going back while stuff is uncloaking
This commit is contained in:
5
vendor/assets/javascripts/ember-cloaking.js
vendored
5
vendor/assets/javascripts/ember-cloaking.js
vendored
@@ -186,7 +186,7 @@
|
||||
|
||||
Em.run.schedule('afterRender', this, function() {
|
||||
onscreenCloaks.forEach(function (v) {
|
||||
if(v && v.uncloak && (v._state || v.state) === 'inDOM') {
|
||||
if(v && v.uncloak) {
|
||||
v.uncloak();
|
||||
}
|
||||
});
|
||||
@@ -298,6 +298,9 @@
|
||||
@method uncloak
|
||||
*/
|
||||
uncloak: function() {
|
||||
var state = this._state || this.state;
|
||||
if (state !== 'inDOM' && state !== 'preRender') { return; }
|
||||
|
||||
if (!this._containedView) {
|
||||
var model = this.get('content'),
|
||||
controller = null,
|
||||
|
||||
Reference in New Issue
Block a user