From d968da74ef7b7ecc68b843e2acb51c8db11cb02d Mon Sep 17 00:00:00 2001 From: Jacob Lauzier Date: Mon, 28 Sep 2015 11:51:54 -0400 Subject: [PATCH] Bad call to getHiddenDurationBetween Bug in Range.js call to DateUtil.getHiddenDurationBetween. It was passing in this.options.moment which is not expected by getHiddenDurationBetween. --- lib/timeline/Range.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/Range.js b/lib/timeline/Range.js index 3d02930c..0564f885 100644 --- a/lib/timeline/Range.js +++ b/lib/timeline/Range.js @@ -551,7 +551,7 @@ Range.prototype._onPinch = function (event) { var scale = 1 / (event.scale + this.scaleOffset); var centerDate = this._pointerToDate(this.props.touch.center); - var hiddenDuration = DateUtil.getHiddenDurationBetween(this.options.moment, this.body.hiddenDates, this.start, this.end); + var hiddenDuration = DateUtil.getHiddenDurationBetween(this.body.hiddenDates, this.start, this.end); var hiddenDurationBefore = DateUtil.getHiddenDurationBefore(this.options.moment, this.body.hiddenDates, this, centerDate); var hiddenDurationAfter = hiddenDuration - hiddenDurationBefore;