r3481 committed - Datepicker - Fixed #4956 - undefined variable: lookAhead()
Revision: 3481
Author: kbwood.au@gmail.com
Date: Thu Nov 26 22:17:41 2009
Log: Datepicker - Fixed #4956 - undefined variable: lookAhead()
http://code.google.com/p/jquery-ui/source/detail?r=3481
Modified:
/trunk/ui/jquery.ui.datepicker.js
=======================================
--- /trunk/ui/jquery.ui.datepicker.js Thu Nov 26 22:08:13 2009
+++ /trunk/ui/jquery.ui.datepicker.js Thu Nov 26 22:17:41 2009
@@ -1157,6 +1157,13 @@
_possibleChars: function (format) {
var chars = '';
var literal = false;
+ // Check whether a format character is doubled
+ var lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat +
1) == match);
+ if (matches)
+ iFormat++;
+ return matches;
+ };
for (var iFormat = 0; iFormat < format.length; iFormat++)
if (literal)
if (format.charAt(iFormat) == "'" && !lookAhead("'"))
--