searchpicker
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -178,3 +178,3 @@ "use strict"; | ||
_this.items = items; | ||
var hasResults = false; | ||
var numResults = 0; | ||
if (items.length) { | ||
@@ -193,3 +193,3 @@ for (var i = 0; i < items.length; i++) { | ||
_this.resultsElm.appendChild(result); | ||
hasResults = true; | ||
numResults++; | ||
} | ||
@@ -199,3 +199,3 @@ } | ||
_this.clearHighlighted(); | ||
if (!hasResults) { | ||
if (numResults == 0) { | ||
if (_this.hideOnEmptyResults) { | ||
@@ -215,2 +215,3 @@ _this.hide(); | ||
} | ||
_this.$notifyEvent('afterSearch', { query: query, results: items, appended: numResults }); | ||
_this.show(); | ||
@@ -217,0 +218,0 @@ }, function (message) { |
{ | ||
"name": "searchpicker", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3119
301962