Skip to content

Instantly share code, notes, and snippets.

@locks
Forked from dadamssg/promise.js
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save locks/0d52b4c1a457d708cf4f to your computer and use it in GitHub Desktop.
Save locks/0d52b4c1a457d708cf4f to your computer and use it in GitHub Desktop.
var _this = this;
requestMatcher.get('project.requestMatchers').then(function(requestMatchers) {
return requestMatchers.removeObject(requestMatcher).destroyRecord();
}).then(function() {
_this.trigger('hideModal');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment