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,6 +192,7 @@
} }
} }
} }
}
// 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 ) {
@@ -199,7 +200,6 @@
} else { } else {
this.resultHandler( query ); this.resultHandler( query );
} }
}
}, },
searchAPI: function ( query ) { searchAPI: function ( query ) {