Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

Commit

Permalink
normalise attribute, because it should be case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
warpech committed Dec 10, 2014
1 parent 655546c commit 313f421
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/puppet-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 313f421

Please sign in to comment.