diff options
author | Ariel Flesler <aflesler@gmail.com> | 2008-10-22 10:12:45 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2008-10-22 10:12:45 +0000 |
commit | fd9ab96caaf4d3dbf301a6babf7d200ab23fec62 (patch) | |
tree | c1473148bcfa0b1566c1801be2a5b382eb3de481 | |
parent | 0767f9a7e63e35194cc0cd45adcd9f3f7d31016f (diff) | |
download | jquery-ui-fd9ab96caaf4d3dbf301a6babf7d200ab23fec62.tar.gz jquery-ui-fd9ab96caaf4d3dbf301a6babf7d200ab23fec62.zip |
ui.datepicker: fixing a var being leaked to the global namespace(attrName).
-rw-r--r-- | ui/ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index 3ce47adcd..35428c64b 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -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 || {}; |