From 0242339d05f97e29df4785ad0234f86370303d42 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Wed, 16 Nov 2011 09:18:26 +0100 Subject: [PATCH] check on the is_last condition fixed --- prova.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prova.html b/prova.html index bfd3f7d..07dd606 100644 --- a/prova.html +++ b/prova.html @@ -127,6 +127,11 @@ Summo.prototype = { name: "Summo", s_attr: null, + c_func: function() + { + console.log("c_func overwrited"); + }, + s_func: function() { this.a_func(); @@ -153,7 +158,7 @@ function Extends(sub) for (var f in proto) { console.log("LOOP: "+f); - if( f != "constructor" && typeof(proto[f]) == "function" && is_last){ + if( f != "constructor" && typeof(proto[f]) == "function" && !is_last){ console.log("PR: "+proto['name']+" F: "+f); // sub[f] = proto[f]; sub[f] = function(){ -- 2.17.1