Browse files

use underscore _.toArray instead of slice hack

  • Loading branch information...
1 parent 3a87c35 commit 57a3f511edc29f25eb3714e39542f2cf68ad0486 @masylum committed May 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/model.js
View
2 lib/model.js
@@ -49,7 +49,7 @@ module.exports = function (db, collection_name) {
MODEL.mongo = function (args) {
var parsed_method, options, callback;
- args = [].slice.call(arguments, 0);
+ args = _.toArray(arguments);
options = args.shift();
if (typeof options === 'string') {

0 comments on commit 57a3f51

Please sign in to comment.