{{linkTo}}无法读取undefined的属性

时间:2013-04-19 10:06:38

标签: ember.js

尝试从我的列表视图转换到单个对象视图时 - 我收到错误:

'Uncaught TypeError: Cannot read property 'JobProjectRole' of undefined'

我最初认为我的模型没有被传递给新视图的控制器,但是从堆栈跟踪中我认为这与列表视图和解除绑定有关吗?

这是堆栈跟踪:

N.unchain ember-1.0.0-rc.1.min.js:16  
N.remove ember-1.0.0-rc.1.min.js:16  
Ember.unwatch ember-1.0.0-rc.1.min.js:16  
Ember.removeObserver ember-1.0.0-rc.1.min.js:16  
(anonymous function) ember-1.0.0-rc.1.min.js:27  
h ember-1.0.0-rc.1.min.js:16  
Ember.Evented.Ember.Mixin.create.trigger ember-1.0.0-rc.1.min.js:23  
Ember.CoreView.Ember.Object.extend.trigger ember-1.0.0-rc.1.min.js:25  
r ember-1.0.0-rc.1.min.js:16  
Ember.View.Ember.CoreView.extend.triggerRecursively ember-1.0.0-rc.1.min.js:27  
r ember-1.0.0-rc.1.min.js:16  
Ember.View.Ember.CoreView.extend._notifyWillDestroyElement ember-1.0.0-rc.1.min.js:27  
Ember.merge.destroyElement ember-1.0.0-rc.1.min.js:28  
Ember.View.Ember.CoreView.extend.destroyElement ember-1.0.0-rc.1.min.js:27  
r ember-1.0.0-rc.1.min.js:16  
Ember.View.Ember.CoreView.extend.willDestroy ember-1.0.0-rc.1.min.js:27  
r ember-1.0.0-rc.1.min.js:16  
w.PrototypeMixin.h.create.destroy ember-1.0.0-rc.1.min.js:24  
r ember-1.0.0-rc.1.min.js:16  
Ember.ContainerView.Ember.View.extend._currentViewWillChange ember-1.0.0-rc.1.min.js:28  
h ember-1.0.0-rc.1.min.js:16 
Ember.notifyBeforeObservers ember-1.0.0-rc.1.min.js:16  
A ember-1.0.0-rc.1.min.js:16  
n ember-1.0.0-rc.1.min.js:16  
Ember.trySet ember-1.0.0-rc.1.min.js:16  
(anonymous function) ember-1.0.0-rc.1.min.js:21  
l ember-1.0.0-rc.1.min.js:16  
Ember.tryFinally ember-1.0.0-rc.1.min.js:16  
f ember-1.0.0-rc.1.min.js:16  
Ember._suspendObserver ember-1.0.0-rc.1.min.js:16  
s._sync ember-1.0.0-rc.1.min.js:21  
(anonymous function) ember-1.0.0-rc.1.min.js:17  
Ember.handleErrors ember-1.0.0-rc.1.min.js:16  
n ember-1.0.0-rc.1.min.js:17  
f ember-1.0.0-rc.1.min.js:17  
l ember-1.0.0-rc.1.min.js:17  
Ember.tryFinally ember-1.0.0-rc.1.min.js:16  
i.flush ember-1.0.0-rc.1.min.js:17   
i.end ember-1.0.0-rc.1.min.js:17  
e ember-1.0.0-rc.1.min.js:20  
Ember.tryFinally ember-1.0.0-rc.1.min.js:16  
Ember.run.end ember-1.0.0-rc.1.min.js:20  
Ember.tryFinally ember-1.0.0-rc.1.min.js:16  
Ember.run ember-1.0.0-rc.1.min.js:17  
(anonymous function) ember-1.0.0-rc.1.min.js:41  
p.event.dispatch jquery.min.js:2  
g.handle.h

0 个答案:

没有答案