Skip to content

Commit

Permalink
added MongooseArray#splice support
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed May 19, 2011
1 parent be77994 commit 3e5a428
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/mongoose/types/array.js
Expand Up @@ -269,6 +269,16 @@ MongooseArray.prototype.$pullAll = function (values) {
return this;
};

/**
* Splices the array.
*/

MongooseArray.prototype.splice = function () {
Array.prototype.splice.apply(this, arguments);
this._markModified();
return this;
};

/**
* Returns an Array
*
Expand Down

0 comments on commit 3e5a428

Please sign in to comment.