X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=xynt.git;a=blobdiff_plain;f=xynt-base.js;h=8c39a2812a38ed031ae4077ac9d66e157b71b617;hp=80c924985a59ad4c5cd07fcfaeb90337baf04eea;hb=3d6b134b0c2945787eb759dc3aa44f876c3232c8;hpb=4450618fd580a5491bafcc9d1238dd89e501f9cf diff --git a/xynt-base.js b/xynt-base.js index 80c9249..8c39a28 100644 --- a/xynt-base.js +++ b/xynt-base.js @@ -1,3 +1,4 @@ + function Extends(sub) { var proto; @@ -6,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) { @@ -18,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); } } @@ -39,11 +41,129 @@ function Extends(sub) } multi(inh, sub, true); - inh.super = function(cl, method) { - return this.xynt_sup_cl[cl].method.apply(this,arguments); + + + inh.callSuper = function(fnc){ + var len = this.xynt_sup_cl.length; + for ( var i=0 ; i