Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 01d2cde

Browse files
committed
refactor(chips): remove deprecated MdChipsCtrl.selectAndFocusChip
- use `MdChipsCtrl.selectAndFocusChipSafe()` instead BREAKING CHANGE: The deprecated `MdChipsCtrl.selectAndFocusChip()` function has been removed. `MdChipsCtrl.selectAndFocusChipSafe()` should be used instead.
1 parent dda25a6 commit 01d2cde

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/components/chips/js/chipsController.js

-12
Original file line numberDiff line numberDiff line change
@@ -805,18 +805,6 @@ MdChipsCtrl.prototype.selectChip = function(index) {
805805
}
806806
};
807807

808-
/**
809-
* Selects the chip at {@code index} and gives it focus.
810-
* @param {number} index location of chip to select and focus
811-
* @deprecated use MdChipsCtrl.selectAndFocusChipSafe. Will be removed in 1.2.
812-
*/
813-
MdChipsCtrl.prototype.selectAndFocusChip = function(index) {
814-
this.selectChip(index);
815-
if (index !== -1) {
816-
this.focusChip(index);
817-
}
818-
};
819-
820808
/**
821809
* Call {@code focus()} on the chip at {@code index}
822810
* @param {number} index location of chip to focus

0 commit comments

Comments
 (0)