X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=xynt-base.js;h=de7cd258db2047e851bee47d36426b0511779306;hb=9a5980f2c66a4fb66cfdd40a978ee5d1544c225d;hp=80c924985a59ad4c5cd07fcfaeb90337baf04eea;hpb=4450618fd580a5491bafcc9d1238dd89e501f9cf;p=xynt.git diff --git a/xynt-base.js b/xynt-base.js index 80c9249..de7cd25 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,139 @@ 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