mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
ui.datepicker: fixing a var being leaked to the global namespace(attrName).
This commit is contained in:
parent
0767f9a7e6
commit
fd9ab96caa
@ -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 || {};
|
||||
|
Loading…
Reference in New Issue
Block a user