Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement limits #115

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fixes _setLimits limits types
  • Loading branch information
Nicolas Frandeboeuf authored and Nicolas Frandeboeuf committed Apr 29, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7b1b12870dabaa9fdb552c15ccad39eaad7969ea
7 changes: 6 additions & 1 deletion jQDateRangeSlider.js
Original file line number Diff line number Diff line change
@@ -63,8 +63,13 @@
&& (min > max)
)
{
if (min instanceof Date)
min = min.getTime();

if (max instanceof Date)
max = max.getTime();

$.ui.rangeSlider.prototype._setLimits.apply(this, [min, max]);
this._normalizeLimits();
}
},