Skip to content

Commit 8f739a7

Browse files
fix multiple loading of charts in library
#600
1 parent e424c8d commit 8f739a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/render-facade.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@
8181
}
8282

8383
$(document).ready(function(){
84-
// facade loads twice in the library, so all charts are also loaded twice
85-
// this will ensure that even if it loaded twice, it initializes all charts only once.
84+
// facade loads N times in the library (where N = the number of different chart libraries supported)
85+
// so all charts are also loaded N times
86+
// this will ensure that no matter how many times facade is loaded, it initializes all charts only once.
8687
// fixed as part of the issue to add annotations.
8788
if(visualizer.page_type === 'library'){
8889
if(localStorage.getItem( 'viz-facade-loaded' ) === '1'){
89-
localStorage.removeItem( 'viz-facade-loaded' );
9090
return;
9191
}
9292
localStorage.setItem( 'viz-facade-loaded', '1');

0 commit comments

Comments
 (0)