diff options
| author | Misko Hevery | 2010-08-18 16:23:12 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-08-18 17:26:33 -0700 |
| commit | 5ddd8d958686c5075b6c58b700f19b4bdea90e1d (patch) | |
| tree | f43da0153fb41244425c00fc728a17028671ce03 /src/scenario | |
| parent | 1087270c95f6bbafd3715c9a5eecdafac79c9daa (diff) | |
| download | angular.js-5ddd8d958686c5075b6c58b700f19b4bdea90e1d.tar.bz2 | |
stringify names for better compression, remove dead functions, removed underscore.js compatibility
Diffstat (limited to 'src/scenario')
| -rw-r--r-- | src/scenario/Future.js | 2 | ||||
| -rw-r--r-- | src/scenario/Runner.js | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/scenario/Future.js b/src/scenario/Future.js index d70e8e6e..cc40eff0 100644 --- a/src/scenario/Future.js +++ b/src/scenario/Future.js @@ -2,7 +2,7 @@ function Future(name, behavior) { this.name = name; this.behavior = behavior; this.fulfilled = false; - this.value = undefined; + this.value = _undefined; } Future.prototype = { diff --git a/src/scenario/Runner.js b/src/scenario/Runner.js index ac32559c..d1a9271b 100644 --- a/src/scenario/Runner.js +++ b/src/scenario/Runner.js @@ -42,7 +42,7 @@ angular.scenario.Runner = function(scope, jQuery){ } finally { afterEach(); } - self.currentSpec = null; + self.currentSpec = _null; }; this.logger = function returnNoop(){ return extend(returnNoop, {close:noop, fail:noop}); @@ -144,7 +144,7 @@ angular.scenario.Runner.prototype = { function done() { result.finished = true; futureLogger.close(); - self.self = null; + self.self = _null; (callback||noop).call(specThis); } function next(value){ @@ -153,7 +153,7 @@ angular.scenario.Runner.prototype = { } var future = spec.futures[spec.nextFutureIndex]; (result.log || {close:noop}).close(); - result.log = null; + result.log = _null; if (future) { spec.nextFutureIndex ++; result.log = futureLogger('future', future.name); |
