Skip to content

Commit

Permalink
Update Class.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard04wsu authored Feb 27, 2019
1 parent 6fbf049 commit f5c195d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Class.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,9 @@

/*** add the new & overriding properties to the prototype ***/

if(options.extensions){
for(name in options.extensions){
if(Object.prototype.hasOwnProperty.call(options.extensions, name)){
newPrototype[name] = options.extensions[name];
}
for(name in options.extensions){
if(Object.prototype.hasOwnProperty.call(options.extensions, name)){
newPrototype[name] = options.extensions[name];
}
}

Expand Down

0 comments on commit f5c195d

Please sign in to comment.