Permalink
Browse files

Cleanup whitespace.

  • Loading branch information...
1 parent 414c3ed commit 510e6d125b3517b6e16cea51673f5cc28ccc4471 @kflorence committed Nov 4, 2012
View
@@ -489,7 +489,10 @@ $.widget( "kf." + wizard, {
if ( typeof event === num ) {
howMany = event;
event = undefined;
- } else if ( howMany === undefined ) {
+
+ }
+
+ if ( howMany === undefined ) {
howMany = 1;
}
@@ -539,7 +542,10 @@ $.widget( "kf." + wizard, {
history = howMany;
howMany = event;
event = undefined;
- } else if ( howMany === undefined ) {
+
+ }
+
+ if ( howMany === undefined ) {
howMany = 1;
}
@@ -697,4 +703,4 @@ $.widget( "kf." + wizard, {
}
});
-})( jQuery );
+})( jQuery );
View
@@ -132,4 +132,4 @@ <h2 id="qunit-userAgent"></h2>
</div>
</div>
</body>
-</html>
+</html>
View
@@ -103,4 +103,4 @@ window.domEqual = function( selector, modifier, message ) {
QUnit.push( QUnit.equiv(actual, expected), actual, expected, message );
}
-}());
+})();
@@ -21,13 +21,15 @@ test( "widget method", function() {
});
test( "widget form", function() {
- expect( 4 );
+ var $wizard = $( ".wizard" );
- $( ".wizard" ).each(function() {
- var $wizard = $( this );
+ expect( $wizard.length );
- ok( $wizard.wizard( "form" ).length, "Form found for wizard: #"
- + $wizard.attr( "id" ) );
+ $wizard.each(function() {
+ var $this = $( this );
+
+ ok( $this.wizard( "form" ).length,
+ "Form found for wizard: #" + $this.attr( "id" ) );
});
});
@@ -111,4 +113,4 @@ test( "wizard update", function() {
"Submit is enabled because of the 'submit' stepClass" );
});
-})( jQuery );
+})( jQuery );
@@ -46,4 +46,4 @@ commonWidgetTests( "wizard", {
beforeForward: null,
beforeSelect: null
}
-});
+});
@@ -79,4 +79,4 @@ test( "select", function() {
.wizard( "backward" );
});
-})( jQuery );
+})( jQuery );
@@ -104,11 +104,15 @@ test( "isValidStepIndex", function() {
});
test( "length", function() {
- expect( 4 );
+ var $wizard = $( ".wizard" );
+
+ expect( $wizard.length );
+
+ $wizard.each(function() {
+ var $this = $( this );
- $( ".wizard" ).each(function() {
- ok( $( this ).wizard().wizard( "length" ),
- "Found steps in wizard '" + $( this ).attr( "id" ) + "'" );
+ ok( $this.wizard().wizard( "length" ),
+ "Found steps in wizard '" + $this.attr( "id" ) + "'" );
});
});
@@ -200,4 +204,4 @@ test( "submit", function() {
$w.wizard( "submit" );
});
-})( jQuery );
+})( jQuery );
@@ -185,4 +185,4 @@ test( "{ unidirectional: boolean }", function() {
"Backward button is disabled on unidirectional wizard" );
});
-})( jQuery );
+})( jQuery );

0 comments on commit 510e6d1

Please sign in to comment.