Skip to content

Commit

Permalink
Prepping for 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
indrimuska committed Aug 25, 2016
1 parent cd8b2e0 commit 5434247
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-selector",
"version": "1.4.3",
"version": "1.4.4",
"authors": [
"Indri Muska <indrimuska@gmail.com>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-selector.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angular-selector - v1.4.3 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
/*! angular-selector - v1.4.4 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
@-webkit-keyframes selector-rotate { 0% { -webkit-transform: rotateZ(-359deg); } 100% { -webkit-transform: rotateZ(0deg); } }
@-moz-keyframes selector-rotate { 0% { -moz-transform: rotateZ(-359deg); } 100% { -moz-transform: rotateZ(0deg); } }
@-o-keyframes selector-rotate { 0% { -o-transform: rotateZ(-359deg); } 100% { -o-transform: rotateZ(0deg); } }
Expand Down
12 changes: 6 additions & 6 deletions dist/angular-selector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angular-selector - v1.4.3 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
/*! angular-selector - v1.4.4 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
(function (angular) {

// Key codes
Expand Down Expand Up @@ -420,10 +420,10 @@
};
scope.filterOptions = function () {
scope.filteredOptions = filter(scope.options || [], scope.search);
if (!angular.isArray(scope.selectedValues)) scope.selectedValues = [];
if (scope.multiple)
scope.filteredOptions = scope.filteredOptions.filter(function (option) {
var selectedValues = angular.isArray(scope.selectedValues) ? scope.selectedValues : [scope.selectedValues];
return !scope.inOptions(selectedValues, option);
return !scope.inOptions(scope.selectedValues, option);
});
else {
var index = scope.filteredOptions.indexOf(scope.selectedValues[0]);
Expand Down Expand Up @@ -456,12 +456,12 @@
};

scope.$watch('[search, options, value]', function () {
// Remove selected items
// hide selected items
scope.filterOptions();
$timeout(function () {
// set width
// set input width
scope.setInputWidth();
// Repositionate dropdown
// repositionate dropdown
if (scope.isOpen) scope.dropdownPosition();
});
}, true);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-selector.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5434247

Please sign in to comment.