Permalink
Browse files

drop the use of .bind() in the tests so old browsers can run them

  • Loading branch information...
1 parent 7f1c97e commit 40a3d2198d82cb6a89fda7b2c972edfdc7695d7e @substack committed Dec 17, 2012
Showing with 6 additions and 6 deletions.
  1. +2 −2 test/fn.js
  2. +2 −2 test/proto.js
  3. +2 −2 test/wrap.js
View
4 test/fn.js
@@ -15,8 +15,8 @@ test('protoFn', function (t) {
});
this.x = function (f, g) {
- setTimeout(f.bind({}, 7, 8, 9), 25);
- setTimeout(g.bind({}, [ 'q', 'r' ]), 50);
+ setTimeout(function () { f(7, 8, 9) }, 25);
+ setTimeout(function () { g([ 'q', 'r' ]) }, 50);
};
this.y = 555;
});
View
4 test/proto.js
@@ -7,8 +7,8 @@ test('proto hashes', function (t) {
var s = proto({
x : function (f, g) {
- setTimeout(f.bind({}, 7, 8, 9), 25);
- setTimeout(g.bind({}, [ 'q', 'r' ]), 50);
+ setTimeout(function () { f(7, 8, 9) }, 25);
+ setTimeout(function () { g([ 'q', 'r' ]) }, 50);
},
y : 555
});
View
4 test/wrap.js
@@ -31,8 +31,8 @@ test('proto hashes', function (t) {
var s = proto({
x : function (f, g) {
- setTimeout(f.bind({}, 7, 8, 9), 25);
- setTimeout(g.bind({}, [ 'q', 'r' ]), 50);
+ setTimeout(function () { f(7, 8, 9) }, 25);
+ setTimeout(function () { g([ 'q', 'r' ]) }, 50);
},
y : 555
}, { wrap : swrapper });

0 comments on commit 40a3d21

Please sign in to comment.