Fix test running in IE.
This commit is contained in:
parent
397d202f54
commit
5f82bdbf1b
4056
lib/jasmine-0.9.0.js
4056
lib/jasmine-0.9.0.js
File diff suppressed because it is too large
Load Diff
16
src/base.js
16
src/base.js
@ -28,16 +28,14 @@ jasmine.UPDATE_INTERVAL = 250;
|
|||||||
*/
|
*/
|
||||||
jasmine.bindOriginal_ = function(base, name) {
|
jasmine.bindOriginal_ = function(base, name) {
|
||||||
var original = base[name];
|
var original = base[name];
|
||||||
return function() {
|
if (original.apply) {
|
||||||
if (original.apply) {
|
return function() {
|
||||||
return original.apply(base, arguments);
|
return original.apply(base, arguments);
|
||||||
} else {
|
};
|
||||||
//IE support
|
} else {
|
||||||
if (base == window) {
|
// IE support
|
||||||
return window[name].apply(window, arguments);
|
return window[name];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
jasmine.setTimeout = jasmine.bindOriginal_(window, 'setTimeout');
|
jasmine.setTimeout = jasmine.bindOriginal_(window, 'setTimeout');
|
||||||
|
Loading…
Reference in New Issue
Block a user