@@ -89,7 +89,7 @@ test( "jQuery usage", function() {
8989 "parameter passed via .pluginName(methodName, param)" ) ;
9090 equals ( param2 , "value2" ,
9191 "multiple parameters passed via .pluginName(methodName, param, param)" ) ;
92-
92+
9393 return this ;
9494 } ,
9595 getterSetterMethod : function ( val ) {
@@ -153,17 +153,17 @@ test( "direct usage", function() {
153153 }
154154 }
155155 } ) ;
156-
156+
157157 var elem = $ ( "<div>" ) [ 0 ] ;
158-
158+
159159 shouldCreate = true ;
160160 var instance = new $ . ui . testWidget ( { } , elem ) ;
161161 shouldCreate = false ;
162162
163163 equals ( $ ( elem ) . data ( "testWidget" ) , instance ,
164164 "instance stored in .data(pluginName)" ) ;
165165 equals ( instance . element [ 0 ] , elem , "element stored on widget" ) ;
166-
166+
167167 var ret = instance . methodWithParams ( "value1" , "value2" ) ;
168168 equals ( ret , instance , "plugin returned from method call" ) ;
169169
@@ -193,7 +193,7 @@ test( "error handling", function() {
193193 equal ( msg , "no such method '_privateMethod' for testWidget widget instance" ,
194194 "invalid method call on widget instance" ) ;
195195 } ;
196- $ ( "<div>" ) . testWidget ( ) . testWidget ( "_privateMethod" ) ;
196+ $ ( "<div>" ) . testWidget ( ) . testWidget ( "_privateMethod" ) ;
197197 $ . error = error ;
198198} ) ;
199199
@@ -444,7 +444,7 @@ test( ".option() - delegate to ._setOptions()", function() {
444444 calls = [ ] ;
445445 div . testWidget ( "option" , "foo" , "bar" ) ;
446446 same ( calls , [ { foo : "bar" } ] , "_setOptions called for single option" ) ;
447-
447+
448448 calls = [ ] ;
449449 div . testWidget ( "option" , {
450450 bar : "qux" ,
@@ -471,7 +471,7 @@ test( ".option() - delegate to ._setOption()", function() {
471471 div . testWidget ( "option" , "foo" , "bar" ) ;
472472 same ( calls , [ { key : "foo" , val : "bar" } ] ,
473473 "_setOption called for single option" ) ;
474-
474+
475475 calls = [ ] ;
476476 div . testWidget ( "option" , {
477477 bar : "qux" ,
@@ -684,14 +684,14 @@ test( "._focusable()", function() {
684684 this . _focusable ( this . element . children ( ) ) ;
685685 }
686686 } ) ;
687-
687+
688688 var div = $ ( "#widget" ) . testWidget ( ) . children ( ) ;
689689 ok ( ! div . hasClass ( "ui-state-focus" ) , "not focused on init" ) ;
690690 div . trigger ( "focusin" ) ;
691691 ok ( div . hasClass ( "ui-state-focus" ) , "focused after explicit focus" ) ;
692692 div . trigger ( "focusout" ) ;
693693 ok ( ! div . hasClass ( "ui-state-focus" ) , "not focused after blur" ) ;
694-
694+
695695 div . trigger ( "focusin" ) ;
696696 ok ( div . hasClass ( "ui-state-focus" ) , "focused after explicit focus" ) ;
697697 $ ( "#widget" ) . testWidget ( "disable" ) ;
@@ -700,7 +700,7 @@ test( "._focusable()", function() {
700700 ok ( ! div . hasClass ( "ui-state-focus" ) , "can't focus while disabled" ) ;
701701 $ ( "#widget" ) . testWidget ( "enable" ) ;
702702 ok ( ! div . hasClass ( "ui-state-focus" ) , "enabling doesn't reset focus" ) ;
703-
703+
704704 div . trigger ( "focusin" ) ;
705705 ok ( div . hasClass ( "ui-state-focus" ) , "focused after explicit focus" ) ;
706706 $ ( "#widget" ) . testWidget ( "destroy" ) ;
0 commit comments