Merge pull request #224 from santhoshtr/loopsearch

Avoid calling searchAPI more than once
This commit is contained in:
Niklas Laxström
2016-05-25 15:52:04 +03:00

View File

@@ -192,6 +192,7 @@
} }
} }
} }
}
// Also do a search by search API // Also do a search by search API
if ( !this.resultCount && this.options.searchAPI && query ) { if ( !this.resultCount && this.options.searchAPI && query ) {
@@ -199,7 +200,6 @@
} else { } else {
this.resultHandler( query ); this.resultHandler( query );
} }
}
}, },
searchAPI: function ( query ) { searchAPI: function ( query ) {