From add675c7a0ba311e2cd245f2b127e989ac5e8bbf Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Thu, 16 Feb 2017 17:15:47 +0100 Subject: [PATCH] Revert "Dynamic rolling mode option" --- docs/timeline/index.html | 7 ------- .../timeline/interaction/navigationMenu.html | 3 --- lib/timeline/Timeline.js | 16 ---------------- 3 files changed, 26 deletions(-) diff --git a/docs/timeline/index.html b/docs/timeline/index.html index 7ec093ae..edc0f56f 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -1431,13 +1431,6 @@ document.getElementById('myTimeline').onclick = function (event) { - - toggleRollingMode() - none - Toggle rollingMode. - - - zoomIn(percentage) none diff --git a/examples/timeline/interaction/navigationMenu.html b/examples/timeline/interaction/navigationMenu.html index 9f2dcd68..75a04fdb 100755 --- a/examples/timeline/interaction/navigationMenu.html +++ b/examples/timeline/interaction/navigationMenu.html @@ -38,7 +38,6 @@ - @@ -75,8 +74,6 @@ document.getElementById('zoomOut').onclick = function () { timeline.zoomOut( 0.2); }; document.getElementById('moveLeft').onclick = function () { move( 0.2); }; document.getElementById('moveRight').onclick = function () { move(-0.2); }; - document.getElementById('toggleRollingMode').onclick = function () { timeline.toggleRollingMode() }; - diff --git a/lib/timeline/Timeline.js b/lib/timeline/Timeline.js index 301beadb..e27359e3 100644 --- a/lib/timeline/Timeline.js +++ b/lib/timeline/Timeline.js @@ -572,20 +572,4 @@ Timeline.prototype.getEventProperties = function (event) { } }; -/** - * Toggle Timeline rolling mode - */ - -Timeline.prototype.toggleRollingMode = function () { - if (this.range.rolling) { - this.range.stopRolling(); - } else { - if (this.options.rollingMode == undefined) { - this.setOptions(options) - } - this.range.startRolling(); - } - -} - module.exports = Timeline;