From c5deea9a782602989c0c5a9004e53f617cc642d8 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 20 May 2014 23:45:17 +0200 Subject: Define ticks if button is not used The tick function tries to increment this value. --- bubble.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bubble.js b/bubble.js index 6b735b3..fd59b32 100644 --- a/bubble.js +++ b/bubble.js @@ -399,9 +399,10 @@ function run() { // initialize SVG element and force initSvg(); + +// Set PROFILE=1 to enable profiling when using the button. +var ticks = 0, PROFILE = 1; if (/no-auto/.test(location.search)) { - var ticks = 0; - var PROFILE = 1; // advanced stuff here: profiling! d3.select('body').append('button') .style('position', 'absolute') -- cgit v1.2.1