aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-06 12:53:49 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-06 12:53:49 -0400
commitc1da941f9f664e3dabe1d0b0da8a04dc4d073cf5 (patch)
treefe8979e4403dcb20f7778e5a1214bc76a332c651 /ui
parentc4bd14f1bb66f48eccbd4c491ae76873729ab899 (diff)
downloadjquery-ui-c1da941f9f664e3dabe1d0b0da8a04dc4d073cf5.tar.gz
jquery-ui-c1da941f9f664e3dabe1d0b0da8a04dc4d073cf5.zip
Spinner: Invoke _markupOptions() before _draw().
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.spinner.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index 47fb3e6f7..1b55d8374 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -28,12 +28,16 @@ $.widget( "ui.spinner", {
},
_create: function() {
- this._draw();
this._markupOptions();
+ this._draw();
this._mousewheel();
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() {
var that = this;
$.each({