take care of the case when there is no 'attributes'

This commit is contained in:
frankiefu
2012-10-11 21:03:14 -07:00
parent eb5abe2bbd
commit a62a46bdbd

View File

@@ -107,7 +107,7 @@ license that can be found in the LICENSE file.
};
HTMLElementElement.prototype.component = function(inUber) {
var attributes = this.element.getAttribute("attributes").split(",");
var attributes = (this.element.getAttribute('attributes') || '').split(',');
//var events = this.getAttribute("events");
this.lifecycle({
shadowRootCreated: function(inRoot) {