Permalink
Browse files

Shorten uncurry-this-ing of `Array.prototype.slice`.

  • Loading branch information...
1 parent b457945 commit f9013d46e9f6de84fe2ce6405d5b78081aa5b4f5 @domenic committed Jun 6, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/Publisher.js
View
@@ -31,12 +31,7 @@ function normalizeOptions(options) {
return options;
}
-var slice = (function () {
- var bind = Function.prototype.bind;
- var uncurryThis = bind.bind(bind.call);
-
- return uncurryThis(Array.prototype.slice);
-}());
+var slice = Function.prototype.call.bind(Array.prototype.slice);
module.exports = function Publisher(options) {
var that = this;

0 comments on commit f9013d4

Please sign in to comment.