diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-02-29 22:09:26 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-02-29 22:09:26 -0500 |
commit | b4d9eee966f1dec06f0772e38bba9e5c864374f9 (patch) | |
tree | 6560f7f0b2cb9e688e46727f8ad27aac6eeccb79 /ui/jquery.ui.datepicker.js | |
parent | 8c10c1e41b07ebadf8b3cf67fac88d27ee6c9fdb (diff) | |
parent | 63215a68757c4fa78079a48488d9a91f0ec8cf50 (diff) | |
download | jquery-ui-b4d9eee966f1dec06f0772e38bba9e5c864374f9.tar.gz jquery-ui-b4d9eee966f1dec06f0772e38bba9e5c864374f9.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 07aeeadd0..529032a99 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -620,15 +620,15 @@ $.extend(Datepicker.prototype, { $.datepicker._updateDatepicker(inst); } } - catch (event) { - $.datepicker.log(event); + catch (err) { + $.datepicker.log(err); } } return true; }, /* Pop-up the date picker for a given input field. - If false returned from beforeShow event handler do not show. + If false returned from beforeShow event handler do not show. @param input element - the input field attached to the date picker or event - if triggered by focus */ _showDatepicker: function(input) { @@ -647,7 +647,7 @@ $.extend(Datepicker.prototype, { var beforeShow = $.datepicker._get(inst, 'beforeShow'); var beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {}; if(beforeShowSettings === false){ - //false + //false return; } extendRemove(inst.settings, beforeShowSettings); @@ -785,11 +785,11 @@ $.extend(Datepicker.prototype, { _findPos: function(obj) { var inst = this._getInst(obj); var isRTL = this._get(inst, 'isRTL'); - while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) { - obj = obj[isRTL ? 'previousSibling' : 'nextSibling']; - } - var position = $(obj).offset(); - return [position.left, position.top]; + while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) { + obj = obj[isRTL ? 'previousSibling' : 'nextSibling']; + } + var position = $(obj).offset(); + return [position.left, position.top]; }, /* Hide the date picker from view. @@ -1784,7 +1784,7 @@ function isArray(a) { /* Invoke the datepicker functionality. @param options string - a command, optionally followed by additional parameters or - Object - settings for attaching new datepicker functionality + Object - settings for attaching new datepicker functionality @return jQuery object */ $.fn.datepicker = function(options){ |