File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 6
6
< link type ="text/css " href ="../../themes/base/jquery.ui.all.css " rel ="stylesheet " />
7
7
< script type ="text/javascript " src ="../../jquery-1.6.2.js "> </ script >
8
8
< script type ="text/javascript " src ="../../external/jquery.mousewheel-3.0.4.js "> </ script >
9
+ < script type ="text/javascript " src ="../../external/jquery.global.js "> </ script >
9
10
< script type ="text/javascript " src ="../../ui/jquery.ui.core.js "> </ script >
10
11
< script type ="text/javascript " src ="../../ui/jquery.ui.widget.js "> </ script >
11
12
< script type ="text/javascript " src ="../../ui/jquery.ui.button.js "> </ script >
12
13
< script type ="text/javascript " src ="../../ui/jquery.ui.spinner.js "> </ script >
13
14
< link type ="text/css " href ="../demos.css " rel ="stylesheet " />
14
15
< script type ="text/javascript ">
15
16
$ ( function ( ) {
16
- $ ( "#spinner" ) . spinner ( ) ;
17
+ $ ( "#spinner" ) . spinner ( {
18
+ change : function ( ) {
19
+ console . log ( "change" ) ;
20
+ }
21
+ } ) ;
17
22
18
23
$ ( "#disable" ) . toggle ( function ( ) {
19
24
$ ( "#spinner" ) . spinner ( "disable" ) ;
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ $.widget( "ui.spinner", {
287
287
288
288
_setOption : function ( key , value ) {
289
289
if ( key === "value" ) {
290
- return this . _setOptionValue ( value ) ;
290
+ return this . _value ( value ) ;
291
291
}
292
292
293
293
this . _super ( "_setOption" , key , value ) ;
@@ -303,14 +303,6 @@ $.widget( "ui.spinner", {
303
303
}
304
304
} ,
305
305
306
- _setOptionValue : function ( value ) {
307
- var previous = this . options . value ;
308
- this . _value ( value ) ;
309
- if ( previous !== this . options . value ) {
310
- this . _trigger ( "change" ) ;
311
- }
312
- } ,
313
-
314
306
_setOptions : modifier ( function ( options ) {
315
307
this . _super ( "_setOptions" , options ) ;
316
308
@@ -342,6 +334,7 @@ $.widget( "ui.spinner", {
342
334
_value : function ( value ) {
343
335
this . options . value = this . _trimValue ( this . _parse ( value ) ) ;
344
336
this . _format ( ) ;
337
+ this . _aria ( ) ;
345
338
} ,
346
339
347
340
destroy : function ( ) {
You can’t perform that action at this time.
0 commit comments