Skip to content

Instantly share code, notes, and snippets.

@theSociableme
Created August 10, 2012 14:47
Show Gist options
  • Save theSociableme/3314741 to your computer and use it in GitHub Desktop.
Save theSociableme/3314741 to your computer and use it in GitHub Desktop.
Playing with Gists
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