Skip to content

Commit 906d8b7

Browse files
committed
0.37.0
1 parent 244425d commit 906d8b7

10 files changed

+40
-24
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="0.37.0"></a>
2+
# [0.37.0](https://github.com/algolia/autocomplete.js/compare/v0.36.0...v0.37.0) (2019-08-30)
3+
4+
5+
### Bug Fixes
6+
7+
* **clear:** Avoid error when clear is called after destroy ([#287](https://github.com/algolia/autocomplete.js/issues/287)) ([244425d](https://github.com/algolia/autocomplete.js/commit/244425d))
8+
9+
10+
111
<a name="0.36.0"></a>
212
# [0.36.0](https://github.com/algolia/autocomplete.js/compare/v0.35.0...v0.36.0) (2019-02-21)
313

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "algolia-autocomplete.js",
33
"main": "dist/autocomplete.js",
4-
"version": "0.36.0",
4+
"version": "0.37.0",
55
"homepage": "https://github.com/algolia/autocomplete.js",
66
"authors": [
77
"Algolia Team <[email protected]>"

dist/autocomplete.angular.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* autocomplete.js 0.36.0
2+
* autocomplete.js 0.37.0
33
* https://github.com/algolia/autocomplete.js
44
* Copyright 2019 Algolia, Inc. and other contributors; Licensed MIT
55
*/
@@ -2547,9 +2547,11 @@
25472547
},
25482548

25492549
clear: function clear() {
2550-
this.cancel();
2551-
this.$el.empty();
2552-
this.trigger('rendered', '');
2550+
if (this.$el) {
2551+
this.cancel();
2552+
this.$el.empty();
2553+
this.trigger('rendered', '');
2554+
}
25532555
},
25542556

25552557
isEmpty: function isEmpty() {
@@ -2760,7 +2762,7 @@
27602762
/* 22 */
27612763
/***/ function(module, exports) {
27622764

2763-
module.exports = "0.36.0";
2765+
module.exports = "0.37.0";
27642766

27652767

27662768
/***/ },

dist/autocomplete.angular.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/autocomplete.jquery.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* autocomplete.js 0.36.0
2+
* autocomplete.js 0.37.0
33
* https://github.com/algolia/autocomplete.js
44
* Copyright 2019 Algolia, Inc. and other contributors; Licensed MIT
55
*/
@@ -2596,9 +2596,11 @@
25962596
},
25972597

25982598
clear: function clear() {
2599-
this.cancel();
2600-
this.$el.empty();
2601-
this.trigger('rendered', '');
2599+
if (this.$el) {
2600+
this.cancel();
2601+
this.$el.empty();
2602+
this.trigger('rendered', '');
2603+
}
26022604
},
26032605

26042606
isEmpty: function isEmpty() {
@@ -2809,7 +2811,7 @@
28092811
/* 22 */
28102812
/***/ function(module, exports) {
28112813

2812-
module.exports = "0.36.0";
2814+
module.exports = "0.37.0";
28132815

28142816

28152817
/***/ },

dist/autocomplete.jquery.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/autocomplete.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* autocomplete.js 0.36.0
2+
* autocomplete.js 0.37.0
33
* https://github.com/algolia/autocomplete.js
44
* Copyright 2019 Algolia, Inc. and other contributors; Licensed MIT
55
*/
@@ -3851,9 +3851,11 @@ return /******/ (function(modules) { // webpackBootstrap
38513851
},
38523852

38533853
clear: function clear() {
3854-
this.cancel();
3855-
this.$el.empty();
3856-
this.trigger('rendered', '');
3854+
if (this.$el) {
3855+
this.cancel();
3856+
this.$el.empty();
3857+
this.trigger('rendered', '');
3858+
}
38573859
},
38583860

38593861
isEmpty: function isEmpty() {
@@ -4064,7 +4066,7 @@ return /******/ (function(modules) { // webpackBootstrap
40644066
/* 22 */
40654067
/***/ function(module, exports) {
40664068

4067-
module.exports = "0.36.0";
4069+
module.exports = "0.37.0";
40684070

40694071

40704072
/***/ },

dist/autocomplete.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"release": "./scripts/release.sh",
8080
"docs:netlify": "./scripts/netlify-deploy.js"
8181
},
82-
"version": "0.36.0",
82+
"version": "0.37.0",
8383
"main": "index.js",
8484
"dependencies": {
8585
"immediate": "^3.2.3"

version.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = "0.36.0";
1+
module.exports = "0.37.0";

0 commit comments

Comments
 (0)