Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Commit

Permalink
super slightly smaller/faster.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomcosta committed Apr 30, 2010
1 parent 8400667 commit 024a05e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Slick.Finder.js
Expand Up @@ -178,7 +178,7 @@ local.search = function(context, expression, append, first){

// setup

var parsed, i, l;
var parsed, i;

var uniques = this.uniques = {};

Expand Down Expand Up @@ -230,7 +230,7 @@ local.search = function(context, expression, append, first){
if (found == null) found = [];

// avoid duplicating items already in the append array
if (shouldUniques) for (i = 0, l = found.length; i < l; i++) this.uniques[this.getUID(found[i])] = true;
if (shouldUniques) for (i = found.length; i--;) this.uniques[this.getUID(found[i])] = true;

// default engine

Expand Down

0 comments on commit 024a05e

Please sign in to comment.