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) {
|
_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 || {};
|
||||||
|
Loading…
Reference in New Issue
Block a user