X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=xynt.git;a=blobdiff_plain;f=xynt-base.js;h=de7cd258db2047e851bee47d36426b0511779306;hp=157141b15b0d130ff7a43a116b0dfe45e4fbf253;hb=9a5980f2c66a4fb66cfdd40a978ee5d1544c225d;hpb=26f2f12f9e360b879acb551ae130f91b8b6cdd11 diff --git a/xynt-base.js b/xynt-base.js index 157141b..de7cd25 100644 --- a/xynt-base.js +++ b/xynt-base.js @@ -1,7 +1,3 @@ -/* - * TODO - * super methods caller - */ function Extends(sub) { @@ -11,7 +7,7 @@ function Extends(sub) inh.xynt_sup = []; inh.xynt_sup_cl = []; - console.log("INIZIO EXT"); + console.log("EXT START"); var multi = function(sub, super, is_last) { @@ -23,10 +19,11 @@ function Extends(sub) console.log("LOOP: "+f); if( f != "constructor" && typeof(proto[f]) == "function" && !is_last){ - console.log("M_FU: "+proto['name']+" F: "+f); + console.log("M_FU: "+proto[f]+" F: "+f); // sub[f] = proto[f]; - sub[f] = function(){ - console.log("INFU PR: " + proto['name'] + " FUNC: "+f+" THIS: " + this); + sub[f] = function() { + // console.log("INFU PR: " + proto[f] + " FUNC: "+f+" THIS: " + this); + console.log("SIMPLE LOG"); return proto[f].apply(this,arguments); } } @@ -44,6 +41,19 @@ function Extends(sub) } multi(inh, sub, true); + + + inh.callSuper = function(fnc){ + var len = this.xynt_sup_cl.length; + for ( var i=0 ; i