Skip to content

Commit 22e23e3

Browse files
committed
no prefixing with window
1 parent 732bd46 commit 22e23e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/table/plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ function makeDragRow(gd, tableControlView, optionalMultiplier, optionalPosition)
729729
function conditionalPanelRerender(gd, tableControlView, cellsColumnBlock, pages, prevPages, d, revolverIndex) {
730730
var shouldComponentUpdate = pages[revolverIndex] !== prevPages[revolverIndex];
731731
if(shouldComponentUpdate) {
732-
window.clearTimeout(d.currentRepaint[revolverIndex]);
733-
d.currentRepaint[revolverIndex] = window.setTimeout(function() {
732+
clearTimeout(d.currentRepaint[revolverIndex]);
733+
d.currentRepaint[revolverIndex] = setTimeout(function() {
734734
// setTimeout might lag rendering but yields a smoother scroll, because fast scrolling makes
735735
// some repaints invisible ie. wasteful (DOM work blocks the main thread)
736736
var toRerender = cellsColumnBlock.filter(function(d, i) {return i === revolverIndex && pages[i] !== prevPages[i];});

0 commit comments

Comments
 (0)