From f5c195de8f8d987de5e8a84b4eac546d533ff751 Mon Sep 17 00:00:00 2001 From: Andy Harrison Date: Wed, 27 Feb 2019 15:17:18 -0500 Subject: [PATCH] Update Class.js --- Class.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Class.js b/Class.js index 57d215c..50433a5 100644 --- a/Class.js +++ b/Class.js @@ -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]; } }