Merge pull request #224 from santhoshtr/loopsearch
Avoid calling searchAPI more than once
This commit is contained in:
@@ -192,6 +192,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Also do a search by search API
|
||||
if ( !this.resultCount && this.options.searchAPI && query ) {
|
||||
@@ -199,7 +200,6 @@
|
||||
} else {
|
||||
this.resultHandler( query );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
searchAPI: function ( query ) {
|
||||
|
||||
Reference in New Issue
Block a user