Permalink
Browse files

fix intercal.all

  • Loading branch information...
1 parent 46fbb4a commit 2c06f4bb4493354456964e494d3162b2690a8f1a @marianoguerra committed Mar 27, 2012
Showing with 8 additions and 2 deletions.
  1. +4 −1 intercal.require.js
  2. +4 −1 src/intercal.js
View
@@ -620,7 +620,10 @@ define(["path/to/jquery"], function ($) {
// you can override it in your instance and then get back the original
// here
intercal.request = request;
- intercal.all = intercal.barrier;
+ intercal.all = function () {
+ return intercal.barrier($.makeArray(arguments));
+ };
+
intercal.any = function (items, count, timeout) {
return intercal.barrier(items, timeout || 0, count || 1);
};
View
@@ -618,7 +618,10 @@
// you can override it in your instance and then get back the original
// here
intercal.request = request;
- intercal.all = intercal.barrier;
+ intercal.all = function () {
+ return intercal.barrier($.makeArray(arguments));
+ };
+
intercal.any = function (items, count, timeout) {
return intercal.barrier(items, timeout || 0, count || 1);
};

0 comments on commit 2c06f4b

Please sign in to comment.