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,13 +192,13 @@
}
}
}
}
// Also do a search by search API
if ( !this.resultCount && this.options.searchAPI && query ) {
this.searchAPI( query );
} else {
this.resultHandler( query );
}
// Also do a search by search API
if ( !this.resultCount && this.options.searchAPI && query ) {
this.searchAPI( query );
} else {
this.resultHandler( query );
}
},