backup
can/map/backupcan.Map.backup is a plugin that provides a dirty bit for properties on an Map, and lets you restore the original values of an Map's properties after they are changed.
can.Map.backup is a plugin that provides a dirty bit for properties on an Map, and lets you restore the original values of an Map's properties after they are changed.
Here is an example showing how to use
backup
to save values,restore
to restore them, andisDirty
to check if the Map has changed: