src/js/pop.js
branchnih-youtube
changeset 757 43e261bcd4ce
parent 750 a1a3d09de1f4
equal deleted inserted replaced
756:f971fb0f2a3e 757:43e261bcd4ce
    20   this.media = { 
    20   this.media = { 
    21     "paused": true,
    21     "paused": true,
    22     "muted": false
    22     "muted": false
    23   };
    23   };
    24     
    24     
    25   this.container = container.slice(1); //eschew the '#'
    25   var id = container.split("#"); //eschew the '#'
       
    26   if (id.length === 1)
       
    27     this.container = id[0];
       
    28   else if (id.length > 1)
       
    29     this.container = id[1];
    26   
    30   
    27   this.msgPump = {}; /* dictionnary used to receive and send messages */
    31   this.msgPump = {}; /* dictionnary used to receive and send messages */
    28   this.__codes = []; /* used to schedule the execution of a piece of code in 
    32   this.__codes = []; /* used to schedule the execution of a piece of code in 
    29                         a segment (similar to the popcorn.code plugin). */
    33                         a segment (similar to the popcorn.code plugin). */
    30                           
    34