Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LearnBoost/mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Nov 14, 2012
2 parents 95fcbd3 cd36dd5 commit 9f04f95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 662,10 @@ Model.prototype._where = function _where (where) {
*/

Model.prototype.remove = function remove (fn) {
if (this._removing) return this;
if (this._removing) {
this._removing.addBack(fn);
return this;
}

var promise = this._removing = new Promise(fn)
, where = this._where()
Expand Down

0 comments on commit 9f04f95

Please sign in to comment.