Skip to content

Commit

Permalink
dont return on static function
Browse files Browse the repository at this point in the history
  • Loading branch information
yofreke committed Apr 27, 2016
1 parent acae83d commit 66e12d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/js.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/js.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66e12d3

Please sign in to comment.