diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2013-04-29 14:49:02 -0400 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2013-04-29 14:49:02 -0400 |
commit | d424bb8ec8b505c24dae800524fe310b7789c9bc (patch) | |
tree | ea33dfd23bddd183d24bde1682facd5ed5c6e15f | |
parent | a7d83b1754ed9eaa883ec09289aefe110caf9ee8 (diff) | |
download | jQuery-Timepicker-Addon-d424bb8ec8b505c24dae800524fe310b7789c9bc.zip jQuery-Timepicker-Addon-d424bb8ec8b505c24dae800524fe310b7789c9bc.tar.gz jQuery-Timepicker-Addon-d424bb8ec8b505c24dae800524fe310b7789c9bc.tar.bz2 |
Fixes microsec bug
-rw-r--r-- | jquery-ui-timepicker-addon.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index ab5b440..17b64c5 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -581,7 +581,7 @@ if (this.second <= this._defaults.secondMin) { this.second = this._defaults.secondMin; this._defaults.millisecMin = minDateTime.getMilliseconds(); - if(this.millisec <= this._default.millisecMin) { + if(this.millisec <= this._defaults.millisecMin) { this.millisec = this._defaults.millisecMin; this._defaults.microsecMin = minDateTime.getMicroseconds(); } else { @@ -637,8 +637,8 @@ if (this.second >= this._defaults.secondMax) { this.second = this._defaults.secondMax; this._defaults.millisecMax = maxDateTime.getMilliseconds(); - if (this.millisecond >= this._defaults.millisecondMax) { - this.millisecond = this._defaults.millisecondMax; + if (this.millisec >= this._defaults.millisecMax) { + this.millisec = this._defaults.millisecMax; this._defaults.microsecMax = maxDateTime.getMicroseconds(); } else { if (this.microsec > this._defaults.microsecMax) { @@ -2071,7 +2071,7 @@ * Rough microsecond support */ if(!Date.prototype.getMicroseconds){ - Date.microseconds = null; + Date.microseconds = 0; Date.prototype.getMicroseconds = function(){ return this.microseconds; }; Date.prototype.setMicroseconds = function(m){ this.microseconds = m; return this; }; } |