Permalink
Browse files

fixes #76 Config should should not be set for elements when not prov…

…ided
  • Loading branch information...
bjornd committed Sep 3, 2012
1 parent dffc1e6 commit 044f922e92e686551bbb3e90f4083636e383411c
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/abstract-element.js
View
@@ -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.