load raphael for the stackGraphWidget. popcorn-port
authorhamidouk
Wed, 18 Jan 2012 11:35:18 +0100
branchpopcorn-port
changeset 662 5e10069c5c21
parent 661 48c1beea7b1c
child 663 fe676a466715
child 675 82a5ebbedc83
load raphael for the stackGraphWidget.
src/js/main.js
--- a/src/js/main.js	Wed Jan 18 11:34:52 2012 +0100
+++ b/src/js/main.js	Wed Jan 18 11:35:18 2012 +0100
@@ -35,7 +35,8 @@
     
     /* widget specific requirements */
     for (var idx in config.gui.widgets) {
-      if (config.gui.widgets[idx].type === "PolemicWidget") {        
+      if (config.gui.widgets[idx].type === "PolemicWidget" ||
+          config.gui.widgets[idx].type === "StackGraphWidget") {        
         $L.script(libs.raphael);
       }