Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into oneTexturePerLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Feb 28, 2013
2 parents a209375 + 2a000a3 commit 77dcd6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion Apps/TimelineDemo/TimelineDemo.js
Expand Up @@ -101,7 +101,6 @@ define(['dojo',

function tick() {
var time = clock.tick();
timeline.updateFromClock();
updateScrubTime(time);
requestAnimationFrame(tick);
}
Expand Down
1 change: 0 additions & 1 deletion Source/Widgets/Dojo/CesiumViewerWidget.js
Expand Up @@ -1063,7 +1063,6 @@ define([
} else {
currentTime = this.clock.currentTime;
}
this.timeline.updateFromClock();
this.visualizers.update(currentTime);

// Update the camera to stay centered on the selected object, if any.
Expand Down
4 changes: 4 additions & 0 deletions Source/Widgets/Timeline/Timeline.js
Expand Up @@ -75,6 +75,7 @@ define([
} else {
this._topElement = id;
}

this._clock = clock;
this._scrubJulian = clock.currentTime;
this._mainTicSpan = -1;
Expand Down Expand Up @@ -138,6 +139,9 @@ define([
this.addEventListener = function(type, listener, useCapture) {
widget._topElement.addEventListener(type, listener, useCapture);
};

clock.onTick.addEventListener(this.updateFromClock, this);
this.updateFromClock();
}

Timeline.prototype.addHighlightRange = function(color, heightInPx) {
Expand Down

0 comments on commit 77dcd6c

Please sign in to comment.