@@ -571,23 +571,23 @@ test( ".widget() - overriden", function() {
571
571
572
572
test ( "._bind() to element (default)" , function ( ) {
573
573
expect ( 12 ) ;
574
- var self ;
574
+ var that ;
575
575
$ . widget ( "ui.testWidget" , {
576
576
_create : function ( ) {
577
- self = this ;
577
+ that = this ;
578
578
this . _bind ( {
579
579
keyup : this . keyup ,
580
580
keydown : "keydown"
581
581
} ) ;
582
582
} ,
583
583
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 ) ;
586
586
equals ( "keyup" , event . type ) ;
587
587
} ,
588
588
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 ) ;
591
591
equals ( "keydown" , event . type ) ;
592
592
}
593
593
} ) ;
@@ -611,23 +611,23 @@ test( "._bind() to element (default)", function() {
611
611
612
612
test ( "._bind() to descendent" , function ( ) {
613
613
expect ( 12 ) ;
614
- var self ;
614
+ var that ;
615
615
$ . widget ( "ui.testWidget" , {
616
616
_create : function ( ) {
617
- self = this ;
617
+ that = this ;
618
618
this . _bind ( this . element . find ( "strong" ) , {
619
619
keyup : this . keyup ,
620
620
keydown : "keydown"
621
621
} ) ;
622
622
} ,
623
623
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 ) ;
626
626
equals ( "keyup" , event . type ) ;
627
627
} ,
628
628
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 ) ;
631
631
equals ( "keydown" , event . type ) ;
632
632
}
633
633
} ) ;
@@ -987,31 +987,31 @@ test( "._trigger() - instance as element", function() {
987
987
$ ( "#widget" ) . testWidget ( ) . remove ( ) ;
988
988
} ) ;
989
989
} ) ;
990
-
990
+
991
991
test ( "auto-destroy - .remove() on parent" , function ( ) {
992
992
shouldDestroy ( true , function ( ) {
993
993
$ ( "#widget" ) . testWidget ( ) . parent ( ) . remove ( ) ;
994
994
} ) ;
995
995
} ) ;
996
-
996
+
997
997
test ( "auto-destroy - .remove() on child" , function ( ) {
998
998
shouldDestroy ( false , function ( ) {
999
999
$ ( "#widget" ) . testWidget ( ) . children ( ) . remove ( ) ;
1000
1000
} ) ;
1001
1001
} ) ;
1002
-
1002
+
1003
1003
test ( "auto-destroy - .empty()" , function ( ) {
1004
1004
shouldDestroy ( false , function ( ) {
1005
1005
$ ( "#widget" ) . testWidget ( ) . empty ( ) ;
1006
1006
} ) ;
1007
1007
} ) ;
1008
-
1008
+
1009
1009
test ( "auto-destroy - .empty() on parent" , function ( ) {
1010
1010
shouldDestroy ( true , function ( ) {
1011
1011
$ ( "#widget" ) . testWidget ( ) . parent ( ) . empty ( ) ;
1012
1012
} ) ;
1013
1013
} ) ;
1014
-
1014
+
1015
1015
test ( "auto-destroy - .detach()" , function ( ) {
1016
1016
shouldDestroy ( false , function ( ) {
1017
1017
$ ( "#widget" ) . testWidget ( ) . detach ( ) ;
0 commit comments