Skip to content
Permalink
Browse files

Spinner: Invoke _markupOptions() before _draw().

  • Loading branch information
scottgonzalez committed Aug 6, 2011
1 parent c4bd14f commit c1da941f9f664e3dabe1d0b0da8a04dc4d073cf5
Showing with 5 additions and 1 deletion.
  1. +5 −1 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({

0 comments on commit c1da941

Please sign in to comment.
You can’t perform that action at this time.