Skip to content

Commit

Permalink
fixed bug with data attributes not working for first level options su…
Browse files Browse the repository at this point in the history
…ch as loop
  • Loading branch information
Jordan Schroter committed Sep 2, 2014
1 parent 29ba72e commit 9a13fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.textillate.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
data.out = data.out || {};
data.out[nodeName.replace(/data-out-/, '')] =stringToBoolean(attr.nodeValue);
} else if (/^data-*/.test(nodeName)) {
data[nodeName] = stringToBoolean(attr.nodeValue);
data[nodeName.replace(/data-/, '')] = stringToBoolean(attr.nodeValue);
}
})

Expand Down

0 comments on commit 9a13fde

Please sign in to comment.