我使用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
我不知道这是从哪里来的,以及如何开始追踪它。有什么想法吗?
答案 0 :(得分:2)
我想我追踪了它。这是因为我们用jQuery设置.html()
并且吹走了:
<script id="metamorph-XXX-start" type="text/x-placeholder"></script>
标记。