Skip to content

Commit

Permalink
0.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Mar 24, 2017
1 parent 3da7f35 commit f89a631
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 28 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<a name="0.28.0"></a>
# [0.28.0](https://github.com/algolia/autocomplete.js/compare/v0.27.0...v0.28.0) (2017-03-24)



<a name="0.27.0"></a>
# [0.27.0](https://github.com/algolia/autocomplete.js/compare/v0.26.0...v0.27.0) (2017-03-06)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "algolia-autocomplete.js",
"main": "dist/autocomplete.js",
"version": "0.27.0",
"version": "0.28.0",
"homepage": "https://github.com/algolia/autocomplete.js",
"authors": [
"Algolia Team <[email protected]>"
Expand Down
14 changes: 9 additions & 5 deletions dist/autocomplete.angular.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* autocomplete.js 0.27.0
* autocomplete.js 0.28.0
* https://github.com/algolia/autocomplete.js
* Copyright 2017 Algolia, Inc. and other contributors; Licensed MIT
*/
Expand Down Expand Up @@ -568,15 +568,15 @@
},

_onRedrawn: function onRedrawn() {
this.$node.css('top', 0 + 'px');
this.$node.css('left', 0 + 'px');

var inputRect = this.$input[0].getBoundingClientRect();

if (this.autoWidth) {
this.$node.css('width', inputRect.width + 'px');
}

this.$node.css('top', 0 + 'px');
this.$node.css('left', 0 + 'px');

var wrapperRect = this.$node[0].getBoundingClientRect();

var top = inputRect.bottom - wrapperRect.top;
Expand Down Expand Up @@ -847,6 +847,10 @@
destroyDomStructure(this.$node, this.cssClasses);

this.$node = null;
},

getWrapper: function getWrapper() {
return this.dropdown.$container[0];
}
});

Expand Down Expand Up @@ -2677,7 +2681,7 @@
/* 22 */
/***/ function(module, exports) {

module.exports = "0.27.0";
module.exports = "0.28.0";


/***/ },
Expand Down
6 changes: 3 additions & 3 deletions dist/autocomplete.angular.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/autocomplete.jquery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* autocomplete.js 0.27.0
* autocomplete.js 0.28.0
* https://github.com/algolia/autocomplete.js
* Copyright 2017 Algolia, Inc. and other contributors; Licensed MIT
*/
Expand Down Expand Up @@ -576,15 +576,15 @@
},

_onRedrawn: function onRedrawn() {
this.$node.css('top', 0 + 'px');
this.$node.css('left', 0 + 'px');

var inputRect = this.$input[0].getBoundingClientRect();

if (this.autoWidth) {
this.$node.css('width', inputRect.width + 'px');
}

this.$node.css('top', 0 + 'px');
this.$node.css('left', 0 + 'px');

var wrapperRect = this.$node[0].getBoundingClientRect();

var top = inputRect.bottom - wrapperRect.top;
Expand Down Expand Up @@ -855,6 +855,10 @@
destroyDomStructure(this.$node, this.cssClasses);

this.$node = null;
},

getWrapper: function getWrapper() {
return this.dropdown.$container[0];
}
});

Expand Down Expand Up @@ -2726,7 +2730,7 @@
/* 22 */
/***/ function(module, exports) {

module.exports = "0.27.0";
module.exports = "0.28.0";


/***/ },
Expand Down
6 changes: 3 additions & 3 deletions dist/autocomplete.jquery.min.js

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions dist/autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* autocomplete.js 0.27.0
* autocomplete.js 0.28.0
* https://github.com/algolia/autocomplete.js
* Copyright 2017 Algolia, Inc. and other contributors; Licensed MIT
*/
Expand Down Expand Up @@ -126,7 +126,7 @@ return /******/ (function(modules) { // webpackBootstrap

// expose all methods in the `autocomplete` attribute
inputs.autocomplete = {};
_.each(['open', 'close', 'getVal', 'setVal', 'destroy'], function(method) {
_.each(['open', 'close', 'getVal', 'setVal', 'destroy', 'getWrapper'], function(method) {
inputs.autocomplete[method] = function() {
var methodArguments = arguments;
var result;
Expand Down Expand Up @@ -1826,15 +1826,15 @@ return /******/ (function(modules) { // webpackBootstrap
},

_onRedrawn: function onRedrawn() {
this.$node.css('top', 0 + 'px');
this.$node.css('left', 0 + 'px');

var inputRect = this.$input[0].getBoundingClientRect();

if (this.autoWidth) {
this.$node.css('width', inputRect.width + 'px');
}

this.$node.css('top', 0 + 'px');
this.$node.css('left', 0 + 'px');

var wrapperRect = this.$node[0].getBoundingClientRect();

var top = inputRect.bottom - wrapperRect.top;
Expand Down Expand Up @@ -2105,6 +2105,10 @@ return /******/ (function(modules) { // webpackBootstrap
destroyDomStructure(this.$node, this.cssClasses);

this.$node = null;
},

getWrapper: function getWrapper() {
return this.dropdown.$container[0];
}
});

Expand Down Expand Up @@ -3976,7 +3980,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 22 */
/***/ function(module, exports) {

module.exports = "0.27.0";
module.exports = "0.28.0";


/***/ },
Expand Down
6 changes: 3 additions & 3 deletions dist/autocomplete.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"test:ci": "./test/ci.sh",
"release": "./release.sh"
},
"version": "0.27.0",
"version": "0.28.0",
"main": "index.js",
"dependencies": {
"immediate": "^3.2.3"
Expand Down
2 changes: 1 addition & 1 deletion version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = "0.27.0";
module.exports = "0.28.0";

0 comments on commit f89a631

Please sign in to comment.