我有一个模板可以在生产和开发中渲染得很好,但是在我的qunit测试中,它会随着错误而崩溃:
Something you did caused a view to re-render after it rendered but before it was inserted into the DOM
导致此错误的行读取(使用emblem.js):
img src=logoUrl
如果我将源更改为静态路径,则错误将停止:
img src="/assets/logo.png"
奇怪的是,即使我有计算属性返回“/assets/logo.png”,它仍然会崩溃:
logoUrl: (->
return "/assets/logo.png"
).property("projectLogo.file.url")
知道发生了什么事吗?