| branch | nih-youtube |
| changeset 757 | 43e261bcd4ce |
| parent 750 | a1a3d09de1f4 |
--- a/src/js/pop.js Tue Jan 31 17:22:10 2012 +0100 +++ b/src/js/pop.js Wed Feb 01 12:40:45 2012 +0100 @@ -22,7 +22,11 @@ "muted": false }; - this.container = container.slice(1); //eschew the '#' + var id = container.split("#"); //eschew the '#' + if (id.length === 1) + this.container = id[0]; + else if (id.length > 1) + this.container = id[1]; this.msgPump = {}; /* dictionnary used to receive and send messages */ this.__codes = []; /* used to schedule the execution of a piece of code in