]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Invoke _markupOptions() before _draw().
authorScott González <scott.gonzalez@gmail.com>
Sat, 6 Aug 2011 16:53:49 +0000 (12:53 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sat, 6 Aug 2011 16:53:49 +0000 (12:53 -0400)
ui/jquery.ui.spinner.js

index 47fb3e6f739834b708b544e96258ef75525134a8..1b55d83743ceb74b1a2653390112a132dfd243bc 100644 (file)
@@ -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({