r3191 committed - spinner: fixed scenario where user manually enters a value then clicks...

r3191 committed - spinner: fixed scenario where user manually enters a value then clicks...


Revision: 3191
Author: pazu2k@gmail.com
Date: Thu Sep 3 22:19:40 2009
Log: spinner: fixed scenario where user manually enters a value then clicks
on up/down arrows or uses UP/DOWN/PGUP/PGDN keys.
http://code.google.com/p/jquery-ui/source/detail?r=3191
Modified:
/branches/dev/spinner/ui/ui.spinner.js
=======================================
--- /branches/dev/spinner/ui/ui.spinner.js    Thu Sep 3 10:21:18 2009
+++ /branches/dev/spinner/ui/ui.spinner.js    Thu Sep 3 22:19:40 2009
@@ -303,7 +303,7 @@
    },
    _value: function(newValue) {
        if (!arguments.length) {
-            return this.options.value;
+            return this._parse(this.element.val());
        }
        this._setData('value', newValue);
    },