diff options
author | Felix Nagel <info@felixnagel.com> | 2012-11-28 23:29:15 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-11-28 23:29:15 +0100 |
commit | 36533a718da41d4dc82286d2b7ff52a34481dbbb (patch) | |
tree | 481804cc832f9b8223fd243de8f6ca8dbd119fa2 /ui/jquery.ui.datepicker.js | |
parent | 4e68c526ab464facc56e5b85ca67f4c6648d2f21 (diff) | |
parent | 37ea7341823e7dfe54f37596b1d054b8a2e5c3de (diff) | |
download | jquery-ui-36533a718da41d4dc82286d2b7ff52a34481dbbb.tar.gz jquery-ui-36533a718da41d4dc82286d2b7ff52a34481dbbb.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 823934e05..9f480bf38 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -13,7 +13,6 @@ */ (function( $, undefined ) { -/*jshint evil: true */ $.extend($.ui, { datepicker: { version: "@VERSION" } }); var PROP_NAME = 'datepicker', @@ -139,20 +138,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 +146,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) { |