aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-26 22:49:47 -0500
committerScott González <scott.gonzalez@gmail.com>2012-11-26 22:50:36 -0500
commit7c53af0abc9d0c5b2ae1bcad30d01b7e2e441b75 (patch)
tree22386d9e344b0f6163d9c3ba28537f257d9579ce /ui/jquery.ui.datepicker.js
parent22bd9fc7045f994c7e7ce4abd3eceff4cde88273 (diff)
downloadjquery-ui-7c53af0abc9d0c5b2ae1bcad30d01b7e2e441b75.tar.gz
jquery-ui-7c53af0abc9d0c5b2ae1bcad30d01b7e2e441b75.zip
Datepicker: Remove support for setting options via custom attributes.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js17
1 files changed, 2 insertions, 15 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 823934e05..949ebb93a 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -139,20 +139,7 @@ $.extend(Datepicker.prototype, {
* @param settings object - the new settings to use for this date picker instance (anonymous)
*/
_attachDatepicker: function(target, settings) {
- // check for settings on the control itself - in namespace 'date:'
- var attrName, attrValue, nodeName, inline, inst,
- inlineSettings = null;
- for (attrName in this._defaults) {
- attrValue = target.getAttribute('date:' + attrName);
- if (attrValue) {
- inlineSettings = inlineSettings || {};
- try {
- inlineSettings[attrName] = eval(attrValue);
- } catch (err) {
- inlineSettings[attrName] = attrValue;
- }
- }
- }
+ var nodeName, inline, inst;
nodeName = target.nodeName.toLowerCase();
inline = (nodeName === 'div' || nodeName === 'span');
if (!target.id) {
@@ -160,7 +147,7 @@ $.extend(Datepicker.prototype, {
target.id = 'dp' + this.uuid;
}
inst = this._newInst($(target), inline);
- inst.settings = $.extend({}, settings || {}, inlineSettings || {});
+ inst.settings = $.extend({}, settings || {});
if (nodeName === 'input') {
this._connectDatepicker(target, inst);
} else if (inline) {