Skip to content

Commit

Permalink
outside slice
Browse files Browse the repository at this point in the history
  • Loading branch information
etai committed Jun 10, 2013
1 parent 8cba8e0 commit eafbb2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/resors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var extend = require('xtend');
var extend = require('xtend'),
slice = [].slice;

/*
A do-nothing middleware
Expand Down Expand Up @@ -35,7 +36,7 @@ Resors.fn.middlewares = function(route) {
function(req, res, next) {
req.resors = extend({}, self.options, {
method: function() {
return ~([].slice.call(arguments)).indexOf(req.method.toLowerCase())
return ~(slice.call(arguments)).indexOf(req.method.toLowerCase())
},
errors: []
});
Expand Down

0 comments on commit eafbb2e

Please sign in to comment.