You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using closure actions to wrap a function in the current context, if the function that you provide is undefined you receive a very non-helpful error message at the time you invoke the closure wrapped action (i.e. this.attrs.blah()).
Invoking blah via this.attrs.blah() throws the following error:
Cannot read property 'apply' of undefined at Object.closureAction [as blah] (http://builds.emberjs.com/canary/ember.debug.js:22364:22)
at click (necodu.js:20:16)
at _emberRuntimeSystemObject.default.extend.trigger (http://builds.emberjs.com/canary/ember.debug.js:43201:23)
at superWrapper [as trigger] (http://builds.emberjs.com/canary/ember.debug.js:21493:22)
at Object._emberMetalMerge.default.handleEvent (http://builds.emberjs.com/canary/ember.debug.js:44108:21)
When using closure actions to wrap a function in the current context, if the function that you provide is undefined you receive a very non-helpful error message at the time you invoke the closure wrapped action (i.e.
this.attrs.blah()
).Example snippet:
Invoking
blah
viathis.attrs.blah()
throws the following error:Demo: http://rwjblue.jsbin.com/necodu/edit?html,js,output
The text was updated successfully, but these errors were encountered: