(state)
| 749 | } |
| 750 | |
| 751 | removeState (state) { |
| 752 | var stateIndex = this.states.indexOf(state); |
| 753 | if (stateIndex === -1) { return; } |
| 754 | this.states.splice(stateIndex, 1); |
| 755 | this.emit('stateremoved', state); |
| 756 | } |
| 757 | |
| 758 | /** |
| 759 | * Checks if the element is in a given state. e.g. el.is('alive'); |
no test coverage detected