ui.datepicker: fixing a var being leaked to the global namespace(attrName).

This commit is contained in:
Ariel Flesler 2008-10-22 10:12:45 +00:00
parent 0767f9a7e6
commit fd9ab96caa

View File

@ -158,7 +158,7 @@ $.extend(Datepicker.prototype, {
_attachDatepicker: function(target, settings) { _attachDatepicker: function(target, settings) {
// check for settings on the control itself - in namespace 'date:' // check for settings on the control itself - in namespace 'date:'
var inlineSettings = null; var inlineSettings = null;
for (attrName in this._defaults) { for (var attrName in this._defaults) {
var attrValue = target.getAttribute('date:' + attrName); var attrValue = target.getAttribute('date:' + attrName);
if (attrValue) { if (attrValue) {
inlineSettings = inlineSettings || {}; inlineSettings = inlineSettings || {};