Skip to content

Commit

Permalink
[fix] Fix the bug in hasClass method
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Feb 28, 2012
1 parent a8ccc65 commit 7bbf00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plates.js
Expand Up @@ -24,7 +24,7 @@
attr: /([\-\w]*)=(?:["\']([\-\.\w\s\/:;&#]*)["\'])/gi,

hasClass: function(str, className) {
return str.indexOf(className) > -1;
return str.split(' ').indexOf(className) > -1;
},

iterate: function(html, value, components, tagname, key) {
Expand Down

0 comments on commit 7bbf00d

Please sign in to comment.