@samitouri / QOS-React-2 / commits / c740373b31
Fork 0

The library for web and native user interfaces.

Fix some silly uses of Function.prototype.bind in jasmine-support.js.

Ben Newman committed May 28, 2013 at 13:04 UTC c740373b311a2aa43a512f1bf53e1de72635c02a
1 file changed +2 -2
vendor/jasmine/jasmine-support.js
+2 -2
@@ -37,7 +37,7 @@ var _xit = jasmine.Env.prototype.xit;
37 jasmine.Env.prototype.it = function(desc, func) {
38 // If spec is provided, only run matching specs
39 if (!spec || desc.match(new RegExp(spec, 'i'))) {
40 - return _it.bind(this, desc, func)();
40 + return _it.call(this, desc, func);
41 } else {
42 return this.xit(desc, func);
43 }
@@ -50,7 +50,7 @@ jasmine.Env.prototype.xit = function(desc, func) {
50 this.reporter.subReporters_[0].totalCount += matches.length;
51 }
52 }
53 - return _xit.bind(this, desc, func)();
53 + return _xit.call(this, desc, func);
54 }
55
56 // Mainline Jasmine sets __Jasmine_been_here_before__ on each object to detect