Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created October 13, 2010 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpritchett/624272 to your computer and use it in GitHub Desktop.
Save dpritchett/624272 to your computer and use it in GitHub Desktop.
Todos.Task = SC.Record.extend(
/** @scope Todos.Task.prototype */ {
isDone: SC.Record.attr(Boolean),
description: SC.Record.attr(String),
}) ;
Todos.Task = SC.Record.extend(
### @scope Todos.Task.prototype ###
{
isDone: SC.Record.attr(Boolean),
description: SC.Record.attr(String)
})
Todos.Task = SC.Record.extend( /* @scope Todos.Task.prototype */, {
isDone: SC.Record.attr(Boolean),
description: SC.Record.attr(String)
});
Todos.Task = SC.Record.extend( ### @scope Todos.Task.prototype ### {
isDone: SC.Record.attr(Boolean),
description: SC.Record.attr(String)
})
###
This one failed to compile:
TypeError: In task.coffee, Cannot read property '0' of undefined
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment