Skip to content

Instantly share code, notes, and snippets.

@jonpacker
Forked from tomdale/a.coffee
Created November 27, 2011 06:52
Show Gist options
  • Save jonpacker/1397115 to your computer and use it in GitHub Desktop.
Save jonpacker/1397115 to your computer and use it in GitHub Desktop.
SC.Object.extend
name: SC.attr 'string', { option: 'foo' }
SC.Object.extend({
name: SC.attr('string')
}, {
option: 'foo'
});
SC.Object.extend
name: SC.attr('string', option: 'foo')
SC.Object.extend({
name: SC.attr('string', {
option: 'foo'
})
});
SC.Object.extend({
name: SC.attr('string', { option: foo })
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment