diff --git a/src/puppet-js.html b/src/puppet-js.html index fa4c2a3..16b81c8 100644 --- a/src/puppet-js.html +++ b/src/puppet-js.html @@ -37,11 +37,12 @@ // Fires when an attribute was added, removed, or updated PuppetJsElementPrototype.attributeChangedCallback = function(attr, oldVal, newVal) { + attr = attr.toLowerCase(); switch(attr){ - case "ignoreAdd": + case "ignoreadd": this.ignoreAdd = newVal && new RegExp( newVal ); break; - case "useWebSocket": + case "usewebsocket": this.useWebSocket = newVal || newVal == ""; break; case "ref":