Created
August 10, 2012 14:47
-
-
Save theSociableme/3314741 to your computer and use it in GitHub Desktop.
Playing with Gists
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
initialize: () -> | |
@._meta_data = {} | |
@._dirty = false | |
@.name = 'Generic Collection' | |
putMeta: (property, value) => | |
@._meta_data[property] = value | |
getMeta: (property) => | |
return @._meta_data[property] | |
Clean: () => | |
debug("Collections.BaseCollection Clean: " + @.name) | |
@._dirty = false | |
Dirty: () => | |
debug('Collections.BaseCollection Dirty: ' + @.name) | |
@._dirty = true | |
isDirty: () => | |
@._dirty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment