r3197 committed - spinner: fixes button visibility when set through options

r3197 committed - spinner: fixes button visibility when set through options


Revision: 3197
Author: pazu2k@gmail.com
Date: Sun Sep 6 02:18:10 2009
Log: spinner: fixes button visibility when set through options
http://code.google.com/p/jquery-ui/source/detail?r=3197
Modified:
/branches/dev/spinner/ui/ui.spinner.js
=======================================
--- /branches/dev/spinner/ui/ui.spinner.js    Sun Sep 6 01:43:08 2009
+++ /branches/dev/spinner/ui/ui.spinner.js    Sun Sep 6 02:18:10 2009
@@ -306,9 +306,6 @@
    },
    _setData: function(key, value) {
        switch (key) {
-            case 'buttons':
-                this._hide();
-                break;
            case 'value':
                value = this._parse(value);
                if (value < this._min()) {
@@ -332,6 +329,9 @@
    },
    _afterSetData: function(key, value) {
        switch(key) {
+            case 'buttons':
+                this._hide('hide');
+                break;
            case 'max':
            case 'min':
            case 'step':