Avoid calling searchAPI more than once

The calling code should not be in loop

Change-Id: Ib8433115bf9bf18827ad13bcfb3299a846ae98b3
This commit is contained in:
Santhosh Thottingal
2016-05-25 16:39:17 +05:30
parent 7dcdab7f9c
commit 0a06f4e986

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 );
}
},