不要怂,就是干,撸起袖子干!

Commit 38174df0 by Mick Hansen

Merge pull request #5666 from scragg0x/patch-1

Model.destroy: add model to options
2 parents 1ba6f163 7e1eac21
Showing with 1 additions and 0 deletions
...@@ -2320,6 +2320,7 @@ Model.prototype.destroy = function(options) { ...@@ -2320,6 +2320,7 @@ Model.prototype.destroy = function(options) {
this.$injectScope(options); this.$injectScope(options);
Utils.mapOptionFieldNames(options, this); Utils.mapOptionFieldNames(options, this);
options.model = self;
return Promise.try(function() { return Promise.try(function() {
// Run before hook // Run before hook
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!