Author: jablko
Date: Wed Oct 27 19:23:43 2010
New Revision: 8592
Log:
Simplify and standardize start and end, to match server side behavior
Modified:
trunk/js/date.js
Modified: trunk/js/date.js
==============================================================================
--- trunk/js/date.js Wed Oct 27 19:21:55 2010 (r8591)
+++ trunk/js/date.js Wed Oct 27 19:23:43 2010 (r8592)
@@ -15,7 +15,11 @@
{
jQuery.each(matches, function (index)
{
- var matches = this.match(/\d+/g);
+ var matches = jQuery.map(this.match(/\d+/g), function (elem)
+ {
+ return elem - 0;
+ });
+
if (0 === index)
{
min = max = matches;
@@ -25,12 +29,12 @@
jQuery.each(min, function (index)
{
- if (this - 0 < matches[index] - 0)
+ if (this < matches[index])
{
return false;
}
- if (this - 0 != matches[index] - 0)
+ if (this != matches[index])
{
min = matches;
}
@@ -38,12 +42,12 @@
jQuery.each(max, function (index)
{
- if (this - 0 > matches[index] - 0)
+ if (this > matches[index])
{
return false;
}
- if (this - 0 != matches[index] - 0)
+ if (this != matches[index])
{
max = matches;
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.