Getting Started Pt. 1 — Using SC.TextField.extend doesn't work
mrDarcyMurphy opened this issue · comments
Darcy Murphy commented
In section 6, Creating New Todos with a Text Field, you'll see this snippet a few paragraphs in:
Todos.CreateTodoView = SC.TextField.extend({
Which doesn't work. Instead, I changed it to:
Todos.CreateTodoView = SC.TemplateView.create(SC.TextFieldSupport, {
which worked just fine.
Gregory Moeck commented
This actually works in master now. I'm not sure what version of sproutcore we expect to be running in the guides. In any case, if you run 1.6 beta it should work.
Peter Wagenet commented
You're expected to have 1.6.beta.
Peter Wagenet commented
@mrDarcyMurphy thanks for pointing this out though.