Skip to content

Commit

Permalink
[bugfix] fix context confusion in Slice
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 26, 2016
1 parent 7b10759 commit 42ac46c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions caravel/assets/javascripts/modules/caravel.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ var px = (function () {
},
bindResizeToWindowResize: function () {
var resizeTimer;
var slice = this;
$(window).on('resize', function (e) {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function () {
Expand All @@ -314,7 +315,7 @@ var px = (function () {
}
this.force = force;
token.find("img.loading").show();
container.css('height', slice.height());
container.css('height', this.height());
dttm = 0;
timer = setInterval(stopwatch, 10);
$('#timer').removeClass('btn-danger btn-success');
Expand All @@ -323,7 +324,7 @@ var px = (function () {
},
resize: function () {
token.find("img.loading").show();
container.css('height', slice.height());
container.css('height', this.height());
this.viz.render();
this.viz.resize();
},
Expand Down

0 comments on commit 42ac46c

Please sign in to comment.