Avoid calling searchAPI more than once
The calling code should not be in loop Change-Id: Ib8433115bf9bf18827ad13bcfb3299a846ae98b3
This commit is contained in:
@@ -192,13 +192,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 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 ) {
|
||||||
this.searchAPI( query );
|
this.searchAPI( query );
|
||||||
} else {
|
} else {
|
||||||
this.resultHandler( query );
|
this.resultHandler( query );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user