src/js/init.js
branchnew-model
changeset 927 977a39c4ee80
parent 926 e47ed8eb75cd
child 937 eb3c442cec50
equal deleted inserted replaced
926:e47ed8eb75cd 927:977a39c4ee80
    73     }
    73     }
    74 
    74 
    75     /* widget specific requirements */
    75     /* widget specific requirements */
    76     for(var _i = 0; _i < this.config.gui.widgets.length; _i++) {
    76     for(var _i = 0; _i < this.config.gui.widgets.length; _i++) {
    77         var _t = this.config.gui.widgets[_i].type;
    77         var _t = this.config.gui.widgets[_i].type;
    78         if (typeof IriSP.widgetsRequirements[_t] !== "undefined" && typeof IriSP.widgetsRequirements[_t].requires !== "undefined") {
    78         if (typeof IriSP.widgetsRequirements[_t] !== "undefined" && typeof IriSP.widgetsRequirements[_t].requires !== "undefined" ) {
    79             $L.script(IriSP.getLib(IriSP.widgetsRequirements[_t].requires));
    79             for (var _j = 0; _j < IriSP.widgetsRequirements[_t].requires.length; _j++) {
    80         }
    80                 $L.script(IriSP.getLib(IriSP.widgetsRequirements[_t].requires[_j]));
    81     }
    81             }
    82     
    82         }
    83     var _this = this;
    83     }
    84     IriSP.log($L);
    84     
       
    85     var _this = this;
       
    86     
    85     $L.wait(function() {
    87     $L.wait(function() {
    86         _this.onLibsLoaded();
    88         _this.onLibsLoaded();
    87     });
    89     });
    88 }
    90 }
    89 
    91