此代码在我的浏览器上完美运行:
doLogin: (user) ->
_controllers = @get('controllers')
res = Cluey.Order.find({table: null, user: user.get('id')})
res.on 'didLoad', =>
order = @objectAt(0)
console.log _controllers
_controllers.get('order').set('model', order)
但是当我用 Konacha 测试我的应用程序时,它会抛出这个奇怪的输出:
Hi, we are the controllers ! users_controller.js:95
Class {controller: Class, toString: function, constructor: function, controller: null, unknownProperty: function…} users_controller.js:96
Uncaught Error: assertion failed: calling set on destroyed object
这怎么可能?