From e69531f339326cb64c7ae1236a66ac4c4fdf59e3 Mon Sep 17 00:00:00 2001 From: apendua Date: Tue, 23 Apr 2013 09:42:22 +0200 Subject: [PATCH] also copy static properties --- hoop.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hoop.js b/hoop.js index 7f4cac3..4387cc2 100644 --- a/hoop.js +++ b/hoop.js @@ -2,6 +2,8 @@ GLOBAL.$extends = function(child, parent) { child.prototype = new parent; child.prototype.constructor = child; child.prototype.super = parent.prototype; + for (var key in parent) + child[key] = parent[key]; } GLOBAL.$functions = function(f, object) {