From 462b50e84e894a78b08b49e156479f7151a1000f Mon Sep 17 00:00:00 2001 From: Pivotal Date: Sat, 5 Jun 2010 10:12:16 -0400 Subject: [PATCH] Replace unshift with splice (unshift not IE-safe) --- src/Runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Runner.js b/src/Runner.js index dc8c0be..0620a68 100644 --- a/src/Runner.js +++ b/src/Runner.js @@ -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); };