diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-21 10:01:28 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-21 10:01:28 +0200 |
commit | dd6e5fbbb759a37262dff252ec20013f25c19546 (patch) | |
tree | c6c3bb8fe10fdfef8cb2feb8ff9d1aaed74e1a8c | |
parent | 463bee2a5fe68e2652a89c07733164f6172ea1f6 (diff) | |
download | d3viz-dd6e5fbbb759a37262dff252ec20013f25c19546.tar.gz |
Enable profiling iff URL contains "profile"
-rw-r--r-- | bubble.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -339,8 +339,8 @@ function run() { 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, PROFILE = /\bprofile\b/.test(location.search); +if (/\bno-auto\b/.test(location.search)) { // advanced stuff here: profiling! d3.select('body').append('button') .style('position', 'absolute') |