Skip to content

Commit

Permalink
Make Jasmine compile on Titanium-mobile iPhone JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
RiverGlide committed Oct 13, 2010
1 parent 127fe04 commit 1157329
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/base.js
Expand Up @@ -106,7 +106,10 @@ jasmine.ExpectationResult.prototype.passed = function () {
* Getter for the Jasmine environment. Ensures one gets created
*/
jasmine.getEnv = function() {
return jasmine.currentEnv_ = jasmine.currentEnv_ || new jasmine.Env();
if(jasmine.currentEnv_ == null) {
jasmine.currentEnv_ = new jasmine.Env();
};
return jasmine.currentEnv_;
};

/**
Expand Down

0 comments on commit 1157329

Please sign in to comment.