From 6bb8a91301f6cbe90a9cb2163922f028f342978f Mon Sep 17 00:00:00 2001 From: Colin O'Byrne and JR Boyens Date: Wed, 24 Jul 2013 15:20:15 -0700 Subject: [PATCH] inline the specConstructor --- lib/jasmine-core/jasmine.js | 4 +--- src/core/Env.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 5f6be9e4..7568b6ab 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -427,8 +427,6 @@ getJasmineRequireObj().Env = function(j$) { }; }; - var specConstructor = j$.Spec; // TODO: inline this - var getSpecName = function(spec, currentSuite) { return currentSuite.getFullName() + ' ' + spec.description + '.'; }; @@ -481,7 +479,7 @@ getJasmineRequireObj().Env = function(j$) { this.specFactory = function(description, fn, suite) { totalSpecsDefined++; - var spec = new specConstructor({ + var spec = new j$.Spec({ id: self.nextSpecId(), beforeFns: beforeFns(suite), afterFns: afterFns(suite), diff --git a/src/core/Env.js b/src/core/Env.js index e21ea96f..3294cbcd 100644 --- a/src/core/Env.js +++ b/src/core/Env.js @@ -77,8 +77,6 @@ getJasmineRequireObj().Env = function(j$) { }; }; - var specConstructor = j$.Spec; // TODO: inline this - var getSpecName = function(spec, currentSuite) { return currentSuite.getFullName() + ' ' + spec.description + '.'; }; @@ -131,7 +129,7 @@ getJasmineRequireObj().Env = function(j$) { this.specFactory = function(description, fn, suite) { totalSpecsDefined++; - var spec = new specConstructor({ + var spec = new j$.Spec({ id: self.nextSpecId(), beforeFns: beforeFns(suite), afterFns: afterFns(suite),