Skip to content

Commit c43fb25

Browse files
committed
Fix selectors from css classes
1 parent 7c8aa88 commit c43fb25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/typeahead/www.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ var WWW = (function() {
5353

5454
function buildSelectors(classes) {
5555
var selectors = {};
56-
_.each(classes, function(v, k) { selectors[k] = '.' + v; });
56+
_.each(classes, function(v, k) {
57+
selectors[k] = v.split(' ').map(function(className) { return '.' + className; }).join();
58+
});
5759

5860
return selectors;
5961
}

0 commit comments

Comments
 (0)