src/js/pop.js
branchnew-model
changeset 904 510ebab76fa3
parent 875 43629caa77bc
child 917 eb8677d3a663
--- a/src/js/pop.js	Tue May 15 15:50:19 2012 +0200
+++ b/src/js/pop.js	Fri May 18 18:23:51 2012 +0200
@@ -26,7 +26,7 @@
     "muted": false
   };
     
-  this.container = container.slice(1); //eschew the '#'
+  this.container = container.replace(/^#/,''); //eschew the '#'
   
   this.msgPump = {}; /* dictionnary used to receive and send messages */
   this.__codes = []; /* used to schedule the execution of a piece of code in