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) {
// check for settings on the control itself - in namespace 'date:'
var inlineSettings = null;
for (attrName in this._defaults) {
for (var attrName in this._defaults) {
var attrValue = target.getAttribute('date:' + attrName);
if (attrValue) {
inlineSettings = inlineSettings || {};