samedi 4 avril 2015

ember.js components properties errors out with " TypeError: Cannot use 'in' operator to search for 'isEditing' in undefined"

I have a fairly standard ember.js component:



{{#wiki/wiki-field isEditing=isEditing fieldText=summary maxLength=2800}}
Summary
{{/wiki/wiki-field}}


It's error'ing out:


Uncaught TypeError: Cannot use 'in' operator to search for 'isEditing' in undefined It appears that this is erroring out searching for isEditing among the view keywords:(This is the line from ember.debug.js)


} else if (key in this.view._keywords) {


There doesn't seem to be anything particularly special about this, which is why I'm miffed that I can't find anything about it. I'm using ember-cli, configuring my modules in pods.


The component is stored in:



  • components/wiki/wiki-field/template.hbs

  • components/wiki/wiki-field/component.coffee





Aucun commentaire:

Enregistrer un commentaire