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
if ( !this.resultCount && this.options.searchAPI && query ) {
@@ -199,7 +200,6 @@
} else {
this.resultHandler( query );
}
}
},
searchAPI: function ( query ) {