|
@ -91,7 +91,7 @@ Core.prototype._create = function (container) { |
|
|
this.dom.rightContainer.appendChild(this.dom.shadowBottomRight); |
|
|
this.dom.rightContainer.appendChild(this.dom.shadowBottomRight); |
|
|
|
|
|
|
|
|
this.on('rangechange', function () { |
|
|
this.on('rangechange', function () { |
|
|
this.redraw(); // this allows overriding the redraw method
|
|
|
|
|
|
|
|
|
this._redraw(); // this allows overriding the _redraw method
|
|
|
}.bind(this)); |
|
|
}.bind(this)); |
|
|
this.on('touch', this._onTouch.bind(this)); |
|
|
this.on('touch', this._onTouch.bind(this)); |
|
|
this.on('pan', this._onDrag.bind(this)); |
|
|
this.on('pan', this._onDrag.bind(this)); |
|
@ -316,9 +316,9 @@ Core.prototype.setOptions = function (options) { |
|
|
|
|
|
|
|
|
// override redraw with a throttled version
|
|
|
// override redraw with a throttled version
|
|
|
if (!this._origRedraw) { |
|
|
if (!this._origRedraw) { |
|
|
this._origRedraw = this.redraw.bind(this); |
|
|
|
|
|
|
|
|
this._origRedraw = this._redraw.bind(this); |
|
|
} |
|
|
} |
|
|
this.redraw = util.throttle(this._origRedraw, this.options.throttleRedraw); |
|
|
|
|
|
|
|
|
this._redraw = util.throttle(this._origRedraw, this.options.throttleRedraw); |
|
|
|
|
|
|
|
|
// redraw everything
|
|
|
// redraw everything
|
|
|
this._redraw(); |
|
|
this._redraw(); |
|
@ -448,7 +448,7 @@ Core.prototype.addCustomTime = function (time, id) { |
|
|
|
|
|
|
|
|
this.customTimes.push(customTime); |
|
|
this.customTimes.push(customTime); |
|
|
this.components.push(customTime); |
|
|
this.components.push(customTime); |
|
|
this.redraw(); |
|
|
|
|
|
|
|
|
this._redraw(); |
|
|
|
|
|
|
|
|
return id; |
|
|
return id; |
|
|
}; |
|
|
}; |
|
|