sproutcore / guides

The guides source. Build and push to https://github.com/sproutcore-guides/sproutcore-guides.github.com.

Home Page:http://guides.sproutcore.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started Pt. 1 — Using SC.TextField.extend doesn't work

mrDarcyMurphy opened this issue · comments

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.

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.

You're expected to have 1.6.beta.

@mrDarcyMurphy thanks for pointing this out though.