Unable to generate Controller elements

7 views
Skip to first unread message

Brendan Jefferis

unread,
Oct 5, 2013, 3:38:33 PM10/5/13
to spi...@googlegroups.com

Is there a trick to generating controller elements?

If I set ".className" : "name", in the elements property of my controller, this.name is just a string containing ".className", not the associated element.

I ran test/index.html in my project and everything passed.

The weird thing is, they work fine in the Todo (JS) example I'm working from but when I copy/paste that into my code it breaks.

Brendan Jefferis

unread,
Oct 5, 2013, 3:50:26 PM10/5/13
to spi...@googlegroups.com
My temp workaround is to create a simple method that manually assigns $ objects to element properties, i.e.:

getElements : function () {
   this.foo = $("#foo");
   this.bar = $(".bar");
   // etc ...
Reply all
Reply to author
Forward
0 new messages