@@ -571,23 +571,23 @@ test( ".widget() - overriden", function() {
571571
572572test ( "._bind() to element (default)" , function ( ) {
573573 expect ( 12 ) ;
574- var self ;
574+ var that ;
575575 $ . widget ( "ui.testWidget" , {
576576 _create : function ( ) {
577- self = this ;
577+ that = this ;
578578 this . _bind ( {
579579 keyup : this . keyup ,
580580 keydown : "keydown"
581581 } ) ;
582582 } ,
583583 keyup : function ( event ) {
584- equals ( self , this ) ;
585- equals ( self . element [ 0 ] , event . currentTarget ) ;
584+ equals ( that , this ) ;
585+ equals ( that . element [ 0 ] , event . currentTarget ) ;
586586 equals ( "keyup" , event . type ) ;
587587 } ,
588588 keydown : function ( event ) {
589- equals ( self , this ) ;
590- equals ( self . element [ 0 ] , event . currentTarget ) ;
589+ equals ( that , this ) ;
590+ equals ( that . element [ 0 ] , event . currentTarget ) ;
591591 equals ( "keydown" , event . type ) ;
592592 }
593593 } ) ;
@@ -611,23 +611,23 @@ test( "._bind() to element (default)", function() {
611611
612612test ( "._bind() to descendent" , function ( ) {
613613 expect ( 12 ) ;
614- var self ;
614+ var that ;
615615 $ . widget ( "ui.testWidget" , {
616616 _create : function ( ) {
617- self = this ;
617+ that = this ;
618618 this . _bind ( this . element . find ( "strong" ) , {
619619 keyup : this . keyup ,
620620 keydown : "keydown"
621621 } ) ;
622622 } ,
623623 keyup : function ( event ) {
624- equals ( self , this ) ;
625- equals ( self . element . find ( "strong" ) [ 0 ] , event . currentTarget ) ;
624+ equals ( that , this ) ;
625+ equals ( that . element . find ( "strong" ) [ 0 ] , event . currentTarget ) ;
626626 equals ( "keyup" , event . type ) ;
627627 } ,
628628 keydown : function ( event ) {
629- equals ( self , this ) ;
630- equals ( self . element . find ( "strong" ) [ 0 ] , event . currentTarget ) ;
629+ equals ( that , this ) ;
630+ equals ( that . element . find ( "strong" ) [ 0 ] , event . currentTarget ) ;
631631 equals ( "keydown" , event . type ) ;
632632 }
633633 } ) ;
@@ -987,31 +987,31 @@ test( "._trigger() - instance as element", function() {
987987 $ ( "#widget" ) . testWidget ( ) . remove ( ) ;
988988 } ) ;
989989 } ) ;
990-
990+
991991 test ( "auto-destroy - .remove() on parent" , function ( ) {
992992 shouldDestroy ( true , function ( ) {
993993 $ ( "#widget" ) . testWidget ( ) . parent ( ) . remove ( ) ;
994994 } ) ;
995995 } ) ;
996-
996+
997997 test ( "auto-destroy - .remove() on child" , function ( ) {
998998 shouldDestroy ( false , function ( ) {
999999 $ ( "#widget" ) . testWidget ( ) . children ( ) . remove ( ) ;
10001000 } ) ;
10011001 } ) ;
1002-
1002+
10031003 test ( "auto-destroy - .empty()" , function ( ) {
10041004 shouldDestroy ( false , function ( ) {
10051005 $ ( "#widget" ) . testWidget ( ) . empty ( ) ;
10061006 } ) ;
10071007 } ) ;
1008-
1008+
10091009 test ( "auto-destroy - .empty() on parent" , function ( ) {
10101010 shouldDestroy ( true , function ( ) {
10111011 $ ( "#widget" ) . testWidget ( ) . parent ( ) . empty ( ) ;
10121012 } ) ;
10131013 } ) ;
1014-
1014+
10151015 test ( "auto-destroy - .detach()" , function ( ) {
10161016 shouldDestroy ( false , function ( ) {
10171017 $ ( "#widget" ) . testWidget ( ) . detach ( ) ;
0 commit comments