Fix Build: Firefox doesn't hoist function definitions in for loops
This commit is contained in:
@@ -1734,12 +1734,6 @@ jasmine.Suite.prototype.execute = function(onComplete) {
|
|||||||
|
|
||||||
for (var i = 0; i < children.length; i++) {
|
for (var i = 0; i < children.length; i++) {
|
||||||
allFns.push(wrapChild(children[i]));
|
allFns.push(wrapChild(children[i]));
|
||||||
|
|
||||||
function wrapChild(child) {
|
|
||||||
return function(done) {
|
|
||||||
child.execute(done);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.onStart(this);
|
this.onStart(this);
|
||||||
@@ -1756,6 +1750,12 @@ jasmine.Suite.prototype.execute = function(onComplete) {
|
|||||||
onComplete();
|
onComplete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function wrapChild(child) {
|
||||||
|
return function (done) {
|
||||||
|
child.execute(done);
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
jasmine.Clock = function(global, delayedFunctionScheduler) {
|
jasmine.Clock = function(global, delayedFunctionScheduler) {
|
||||||
var self = this,
|
var self = this,
|
||||||
|
|||||||
@@ -74,12 +74,6 @@ jasmine.Suite.prototype.execute = function(onComplete) {
|
|||||||
|
|
||||||
for (var i = 0; i < children.length; i++) {
|
for (var i = 0; i < children.length; i++) {
|
||||||
allFns.push(wrapChild(children[i]));
|
allFns.push(wrapChild(children[i]));
|
||||||
|
|
||||||
function wrapChild(child) {
|
|
||||||
return function(done) {
|
|
||||||
child.execute(done);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.onStart(this);
|
this.onStart(this);
|
||||||
@@ -96,4 +90,10 @@ jasmine.Suite.prototype.execute = function(onComplete) {
|
|||||||
onComplete();
|
onComplete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function wrapChild(child) {
|
||||||
|
return function (done) {
|
||||||
|
child.execute(done);
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user