X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=xynt.git;a=blobdiff_plain;f=xynt-base.js;h=35dd58e271fd78bb3d8b790dd229add034012418;hp=80c924985a59ad4c5cd07fcfaeb90337baf04eea;hb=9ddb2e6830b72bfe57891a53445fe073ee32ea42;hpb=4450618fd580a5491bafcc9d1238dd89e501f9cf diff --git a/xynt-base.js b/xynt-base.js index 80c9249..35dd58e 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) { @@ -39,11 +40,132 @@ 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