Skip to content

Instantly share code, notes, and snippets.

@Tim-Machine
Created June 29, 2015 09:27
Show Gist options
  • Select an option

  • Save Tim-Machine/7e1f5de2a69cf13223f2 to your computer and use it in GitHub Desktop.

Select an option

Save Tim-Machine/7e1f5de2a69cf13223f2 to your computer and use it in GitHub Desktop.
#inside of addImage::
this._removedImageIds = _.without(this._removedImageIds, image._id);
# inside of save
_.each(this._removedImageIds, function (id) {
this.constructor.imageCollection.remove(id);
}, this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment