Skip to content

Commit

Permalink
Merge pull request #43 from algolia/global-variable-fix
Browse files Browse the repository at this point in the history
The global 'index' variable is overridden
  • Loading branch information
thomaspark committed Jul 9, 2015
2 parents 609aa2b + 0fd6407 commit e79cc22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var index = new AlgoliaSearch("9JQV0RIHU0", "2219d421236cba4cf37a98e7f97b3ec5").initIndex('icons'),
var iconsIndex = new AlgoliaSearch("9JQV0RIHU0", "2219d421236cba4cf37a98e7f97b3ec5").initIndex('icons'),
innerTemplate = '<div class="entry col-lg-1 col-md-2 col-sm-3 col-xs-4" data-clipboard-text="{{{class}}}">' +
'<div class="description">{{{class}}}</div>' +
'<div class="thumb"><i class="{{{class}}}"></i></div>' +
Expand All @@ -18,7 +18,6 @@ var index = new AlgoliaSearch("9JQV0RIHU0", "2219d421236cba4cf37a98e7f97b3ec5").
icons = {},
$libraries = $("#libraries > button"),
qs = $.url().param();

ZeroClipboard.config({
moviePath: "bower_components/zeroclipboard/dist/ZeroClipboard.swf",
forceHandCursor: true
Expand Down Expand Up @@ -69,7 +68,7 @@ function search(v) {
if (v.length === 0) {
load(icons);
} else {
index.search(v, function(success, content) {
iconsIndex.search(v, function(success, content) {
if (!success) return;

var result = {};
Expand Down

0 comments on commit e79cc22

Please sign in to comment.