(id)
| 94 | } |
| 95 | |
| 96 | remove(id) { |
| 97 | if (id == null) id = this.currentId; |
| 98 | for (let i = this.stack.length - 1; i >= 0; i--) { |
| 99 | const handler = this.stack[i]; |
| 100 | if (handler.id === id) { |
| 101 | // Mark the handler as removed. |
| 102 | handler.id = null; |
| 103 | this.stack.splice(i, 1); |
| 104 | break; |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | // The handler stack handles chrome events (which may need to be suppressed) and internal (pseudo) |
| 110 | // events. This checks whether the event at hand is a chrome event. |
no outgoing calls
no test coverage detected