Author: ygrego Date: 2015-02-02 13:08:18 +0000 (Mon, 02 Feb 2015) New Revision: 758 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/758 Log: Registering of visual object(video-broadcast) into 'init.js' and moving of method 'createdCallback' out of VideoBroadcastObject constructor(it became a method member). Modified: oipf/js/impl/VideoBroadcastObject.js oipf/js/initObj/init.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-02-02 12:57:32 UTC (rev 757) +++ oipf/js/impl/VideoBroadcastObject.js 2015-02-02 13:08:18 UTC (rev 758) @@ -113,22 +113,17 @@ allocationMethod: null, createdCallback: function() { + console.log("[INFO] createdCallback called."); + //this.width= "128"; + //this.height= "128"; + //this.align = "middle"; + + //this.data = "../view/img/video-broadcast.jpg"; - }, init: function() { console.log("[INFO] constructor of VideoBroadcast class called."); - - var proto = VideoBroadcastObject.prototype; - proto.createdCallback = function(){ - - } - - document.registerElement('video-broadcast', { - prototype: proto, - extends: "object" - }); }, /*! Modified: oipf/js/initObj/init.js =================================================================== --- oipf/js/initObj/init.js 2015-02-02 12:57:32 UTC (rev 757) +++ oipf/js/initObj/init.js 2015-02-02 13:08:18 UTC (rev 758) @@ -1,2 +1,7 @@ var oipfObjectFactory = new OipfObjectFactory(); -var metadata = data; \ No newline at end of file +var metadata = data; + +document.registerElement('video-broadcast', { + prototype: VideoBroadcastObject.prototype, + extends: "object" +}); \ No newline at end of file