src/js/widgets.js
branchpopcorn-port
changeset 122 04bd1e2f9674
parent 114 eda061f1aa75
child 124 2758dfb208b2
equal deleted inserted replaced
121:607f481ef4c3 122:04bd1e2f9674
     8   
     8   
     9   this._Popcorn = Popcorn;
     9   this._Popcorn = Popcorn;
    10   this._config = config;  
    10   this._config = config;  
    11   this._serializer = Serializer;
    11   this._serializer = Serializer;
    12   
    12   
    13   if (config.hasOwnProperty("divId")) {
    13   if (config.hasOwnProperty("gui") && config.gui.hasOwnProperty("container")) {
    14      this._id = config.divId;
    14      this._id = config.gui.container;
    15      this.selector = IriSP.jQuery("#" + this._id);
    15      this.selector = IriSP.jQuery("#" + this._id);
    16   }  
    16   }  
    17 };
    17 };
    18 
    18 
    19 IriSP.Widget.prototype.draw = function() {
    19 IriSP.Widget.prototype.draw = function() {