Further fixes to javascript multiple class handling.
[fa-stable.git] / js / utils.js
index 478cd158e3d326ab1b8acd732144a352f239359f..c0df0b85e01e7b86feb5a22c35dcdc92b1cf50b1 100644 (file)
@@ -356,5 +356,6 @@ function element_pos(e) {
 }
 
 function string_contains(haystack, needle) {
-  return haystack.indexOf(needle) > -1;
+  var words = haystack.split(' ');
+  return words.indexOf(needle) > -1;
 }