Skip to content

Commit

Permalink
Merge pull request #10 from jsio-private/master
Browse files Browse the repository at this point in the history
dont return on static function
  • Loading branch information
dkraczkowski committed Apr 28, 2016
2 parents acae83d + 66e12d3 commit 223a99d
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 223a99d

Please sign in to comment.