mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner: Invoke _markupOptions() before _draw().
This commit is contained in:
parent
c4bd14f1bb
commit
c1da941f9f
6
ui/jquery.ui.spinner.js
vendored
6
ui/jquery.ui.spinner.js
vendored
@ -28,12 +28,16 @@ $.widget( "ui.spinner", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_create: function() {
|
_create: function() {
|
||||||
this._draw();
|
|
||||||
this._markupOptions();
|
this._markupOptions();
|
||||||
|
this._draw();
|
||||||
this._mousewheel();
|
this._mousewheel();
|
||||||
this._aria();
|
this._aria();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// TODO: should we use _getCreateOptions() now?
|
||||||
|
// would increase overhead of init when options are specified,
|
||||||
|
// but would move the defaults to the right location
|
||||||
|
// and use our API the way it's meant to be used
|
||||||
_markupOptions: function() {
|
_markupOptions: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
$.each({
|
$.each({
|
||||||
|
Loading…
Reference in New Issue
Block a user