Skip to content

Commit

Permalink
Fixed the docs search by readding unique terms function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeanie Chung committed Mar 30, 2015
1 parent ec0dfa5 commit 832c49b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/assets/js/docs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
var components = [];
var unique_search_terms = {};

function pushSearchTerm(searchTerm, data) {
if (!unique_search_terms[searchTerm]) {
components.push({
value: searchTerm,
data: data
});

unique_search_terms[searchTerm] = true
}
};

$("[data-search]")
.each(function() {
var self = $(this),
Expand Down

0 comments on commit 832c49b

Please sign in to comment.