File tree Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 29
29
$ ( this ) . unbind ( "mouseover" , jQuery . event . special . hoverintent . handler ) ;
30
30
} ,
31
31
handler : function ( event ) {
32
- var self = this ,
32
+ var that = this ,
33
33
args = arguments ,
34
34
target = $ ( event . target ) ,
35
35
cX , cY , pX , pY ;
54
54
// is fired asynchronously and the old event is no longer
55
55
// usable (#6028)
56
56
event . originalEvent = { } ;
57
- jQuery . event . handle . apply ( self , args ) ;
57
+ jQuery . event . handle . apply ( that , args ) ;
58
58
} else {
59
59
pX = cX ;
60
60
pY = cY ;
Original file line number Diff line number Diff line change 22
22
< script >
23
23
$ . widget ( "custom.catcomplete" , $ . ui . autocomplete , {
24
24
_renderMenu : function ( ul , items ) {
25
- var self = this ,
25
+ var that = this ,
26
26
currentCategory = "" ;
27
27
$ . each ( items , function ( index , item ) {
28
28
if ( item . category != currentCategory ) {
29
29
ul . append ( "<li class='ui-autocomplete-category'>" + item . category + "</li>" ) ;
30
30
currentCategory = item . category ;
31
31
}
32
- self . _renderItem ( ul , item ) ;
32
+ that . _renderItem ( ul , item ) ;
33
33
} ) ;
34
34
}
35
35
} ) ;
Original file line number Diff line number Diff line change 29
29
( function ( $ ) {
30
30
$ . widget ( "ui.combobox" , {
31
31
_create : function ( ) {
32
- var self = this ,
32
+ var that = this ,
33
33
select = this . element . hide ( ) ,
34
34
selected = select . children ( ":selected" ) ,
35
35
value = selected . val ( ) ? selected . text ( ) : "" ;
85
85
} ,
86
86
select : function ( event , ui ) {
87
87
ui . item . option . selected = true ;
88
- self . _trigger ( "selected" , event , {
88
+ that . _trigger ( "selected" , event , {
89
89
item : ui . item . option
90
90
} ) ;
91
91
} ,
Original file line number Diff line number Diff line change @@ -157,8 +157,7 @@ $.extend( $.simulate.prototype, {
157
157
} ,
158
158
159
159
drag : function ( el ) {
160
- var self = this ,
161
- center = this . findCenter ( this . target ) ,
160
+ var center = this . findCenter ( this . target ) ,
162
161
options = this . options ,
163
162
x = Math . floor ( center . x ) ,
164
163
y = Math . floor ( center . y ) ,
Original file line number Diff line number Diff line change 21
21
22
22
$ . widget ( "ui.drilldown" , {
23
23
_init : function ( ) {
24
- var self = this ;
24
+ var that = this ;
25
25
this . active = this . element . find ( ">ul" ) . attr ( "tabindex" , 0 ) ;
26
26
27
27
// hide submenus and create indicator icons
31
31
// disable built-in key handling
32
32
input : $ ( ) ,
33
33
focus : function ( event , ui ) {
34
- self . activeItem = ui . item ;
34
+ that . activeItem = ui . item ;
35
35
} ,
36
36
select : function ( event , ui ) {
37
- if ( this != self . active [ 0 ] ) {
37
+ if ( this != that . active [ 0 ] ) {
38
38
return ;
39
39
}
40
40
var nested = $ ( ">ul" , ui . item ) ;
41
41
if ( nested . length ) {
42
- self . _open ( nested ) ;
42
+ that . _open ( nested ) ;
43
43
} else {
44
- self . element . find ( "h3" ) . text ( ui . item . text ( ) ) ;
45
- self . options . select . apply ( this , arguments ) ;
44
+ that . element . find ( "h3" ) . text ( ui . item . text ( ) ) ;
45
+ that . options . select . apply ( this , arguments ) ;
46
46
}
47
47
}
48
48
} ) ;
52
52
primary : "ui-icon-carat-1-w"
53
53
}
54
54
} ) . click ( function ( ) {
55
- self . up ( ) ;
55
+ that . up ( ) ;
56
56
return false ;
57
57
} ) . hide ( ) ;
58
58
} ,
You can’t perform that action at this time.
0 commit comments