Skip to content

Commit

Permalink
Make clearSelection public.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Aug 11, 2015
1 parent c4a9413 commit d55be7d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/template/array-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
multi: {
type: Boolean,
value: false,
observer: '_resetSelection'
observer: 'clearSelection'
},

/**
Expand All @@ -108,7 +108,12 @@
}
},

_resetSelection: function() {
/**
* Clears the selection state.
*
* @method clearSelection
*/
clearSelection: function() {
// Unbind previous selection
if (Array.isArray(this.selected)) {
for (var i=0; i<this.selected.length; i++) {
Expand Down

0 comments on commit d55be7d

Please sign in to comment.