Created
January 16, 2015 18:54
-
-
Save mtford90/1fe025b9f3b8957107c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Car = Collection.model('Car', { | |
id: 'id', | |
attributes: ['colour'], | |
properties: { | |
blah: { | |
get: function () { | |
return this.colour ? this.colour.toUpperCase() : this.colour; | |
}, | |
// Workaround for chrome. | |
dependencies: ['colour'] | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment