front_idill/src/player/metadataplayer/LdtPlayer-core.js
changeset 44 8393d3473b98
parent 35 4267d6d27a7d
equal deleted inserted replaced
43:cefce0845ac5 44:8393d3473b98
  1568 IriSP.Widgets.Widget.prototype.renderTemplate = function() {
  1568 IriSP.Widgets.Widget.prototype.renderTemplate = function() {
  1569     this.$.append(this.templateToHtml(this.template));
  1569     this.$.append(this.templateToHtml(this.template));
  1570 }
  1570 }
  1571 
  1571 
  1572 IriSP.Widgets.Widget.prototype.functionWrapper = function(_name) {
  1572 IriSP.Widgets.Widget.prototype.functionWrapper = function(_name) {
       
  1573 // console.log('marker');
  1573     var _this = this,
  1574     var _this = this,
  1574         _function = this[_name];
  1575         _function = this[_name];
       
  1576 		
       
  1577 		// console.log(_name, arguments);
       
  1578 		// console.log(typeof _function);
  1575     if (typeof _function !== "undefined") {
  1579     if (typeof _function !== "undefined") {
  1576         return function() {
  1580         return function() {
       
  1581 		// console.log('marker ok');
  1577             return _function.apply(_this, Array.prototype.slice.call(arguments, 0));
  1582             return _function.apply(_this, Array.prototype.slice.call(arguments, 0));
  1578         }
  1583         }
  1579     } else {
  1584     } else {
  1580         console.log("Error, Unknown function IriSP." + this.type + "." + _name)
  1585         console.log("Error, Unknown function IriSP." + this.type + "." + _name)
  1581     }
  1586     }