Skip to content

Commit

Permalink
Improved options update on change
Browse files Browse the repository at this point in the history
Fixes #30
  • Loading branch information
indrimuska committed Mar 15, 2016
1 parent 90961a6 commit 856ebde
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 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.3.1",
"version": "1.3.2",
"authors": [
"Indri Muska <indrimuska@gmail.com>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@
? { newValue: newValue, oldValue: oldValue }
: { newValue: newValue[0], oldValue: oldValue[0] });
}, true);
scope.$watch('options', function (newValue, oldValue) {
scope.$watchCollection('options', function (newValue, oldValue) {
if (angular.equals(newValue, oldValue) || scope.remote) return;
scope.updateSelected();
});
Expand Down
Loading

0 comments on commit 856ebde

Please sign in to comment.