Permalink
Browse files

[fix] Fix the bug in hasClass method

  • Loading branch information...
1 parent a8ccc65 commit 7bbf00d1e7356ea77265e684056ac41376475427 @pksunkara pksunkara committed Feb 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plates.js
View
@@ -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) {

0 comments on commit 7bbf00d

Please sign in to comment.