Skip to content
Browse files

fixes #76 Config should should not be set for elements when not provided

  • Loading branch information...
1 parent dffc1e6 commit 044f922e92e686551bbb3e90f4083636e383411c @bjornd committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/abstract-element.js
View
5 lib/abstract-element.js
@@ -25,7 +25,10 @@ jvm.AbstractElement = function(name, config){
* @private
*/
this.properties = {};
- this.set(config);
+
+ if (config) {
+ this.set(config);
+ }
};
/**

0 comments on commit 044f922

Please sign in to comment.
Something went wrong with that request. Please try again.