Permalink
Browse files

make coding style more consistent

This doesn't change semantics, but usually loop variables that are used
in more than one loop seem to be declared before them.
  • Loading branch information...
1 parent 0775aa5 commit c2a8772bf079e9c09451827f541d3cbfd2703c43 @jlaire jlaire committed Mar 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/Spec.js
View
@@ -182,8 +182,9 @@ jasmine.Spec.prototype.execute = function(onComplete) {
jasmine.Spec.prototype.addBeforesAndAftersToQueue = function() {
var runner = this.env.currentRunner();
var i;
+ var suite;
- for (var suite = this.suite; suite; suite = suite.parentSuite) {
+ for (suite = this.suite; suite; suite = suite.parentSuite) {
for (i = 0; i < suite.before_.length; i++) {
this.queue.addBefore(new jasmine.Block(this.env, suite.before_[i], this));
}

0 comments on commit c2a8772

Please sign in to comment.