Skip to content

Commit

Permalink
[lib] added in map via class feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Fragomeni committed Nov 16, 2011
1 parent b77dd16 commit c96e239
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plates.js
Expand Up @@ -64,6 +64,7 @@
//
// has an attribute who's value is a match.
//
console.log(map[key])
if (matchedAttr[1] === map[key] && data[matchedAttr[2]]) {
var idx = matchedTag.index + matchedTag[0].length;
html = html.slice(0, idx) + data[matchedAttr[2]] + html.slice(idx);
Expand Down

0 comments on commit c96e239

Please sign in to comment.