Replace unshift with splice (unshift not IE-safe)

This commit is contained in:
Pivotal 2010-06-05 10:12:16 -04:00
parent 46249bf515
commit 462b50e84e
1 changed files with 2 additions and 2 deletions

View File

@ -25,12 +25,12 @@ jasmine.Runner.prototype.execute = function() {
jasmine.Runner.prototype.beforeEach = function(beforeEachFunction) {
beforeEachFunction.typeName = 'beforeEach';
this.before_.unshift(beforeEachFunction);
this.before_.splice(0,0,beforeEachFunction);
};
jasmine.Runner.prototype.afterEach = function(afterEachFunction) {
afterEachFunction.typeName = 'afterEach';
this.after_.unshift(afterEachFunction);
this.after_.splice(0,0,afterEachFunction);
};