diff --git a/dist/js.class.js b/dist/js.class.js index 70c4d4b..517e9d9 100644 --- a/dist/js.class.js +++ b/dist/js.class.js @@ -42,13 +42,14 @@ function _rewriteStatics(fnc, statics) { for (var prop in statics) { + if (prop === 'extend' || prop === 'static' || prop === 'typeOf' || prop === 'mixin' || prop === 'getClass' ) { continue; } if (typeof statics[prop] === 'object' || typeof statics[prop] === 'function') { fnc[prop] = statics[prop]; - return; + continue; } //check if static is a constant diff --git a/src/js.class.js b/src/js.class.js index b654bb2..03e1a1e 100644 --- a/src/js.class.js +++ b/src/js.class.js @@ -48,7 +48,7 @@ if (typeof statics[prop] === 'object' || typeof statics[prop] === 'function') { fnc[prop] = statics[prop]; - return; + continue; } //check if static is a constant