![](/img/trans.png)
[英]Ember.js - “Cannot perform operations on a Metamorph that is not in the DOM” caused by template
[英]Ember.js - Cannot perform operations on a Metamorph that is not in the DOM
我正在使用Ember.js
版本1.0.0-rc.3
,最近開始看到:
Uncaught Error: Cannot perform operations on a Metamorph that is not in the DOM. lib- dev.js:28254
Metamorph.checkRemoved lib-dev.js:28254
Metamorph.html lib-dev.js:28224
SimpleHandlebarsView.update lib-dev.js:29167
(anonymous function) lib-dev.js:14424
Ember.handleErrors lib-dev.js:10331
invoke lib-dev.js:14422
invokeOnceTimer lib-dev.js:14875
(anonymous function) lib-dev.js:14424
Ember.handleErrors lib-dev.js:10331
invoke lib-dev.js:14422
iter lib-dev.js:14492
RunLoop.flush lib-dev.js:14546
RunLoop.end lib-dev.js:14451
tryable lib-dev.js:14652
Ember.tryFinally lib-dev.js:11119
Ember.run.end lib-dev.js:14655
autorun
我不知道這是從哪里來的,以及如何開始追蹤它。 有任何想法嗎?
我想我已經找到了。 這是因為我們正在使用jQuery設置.html()
並吹走了:
<script id="metamorph-XXX-start" type="text/x-placeholder"></script>
標簽。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.