* Helper function that returns true if any element in an array meets given criteria. * Because older browsers do not support `Array.prototype.some` * @params array {Array} * @params predict {Function}
(array, predict)
| 94489 | * @params array {Array} |
| 94490 | * @params predict {Function} |
| 94491 | */ function some(array, predict) { |
| 94492 | for(let i = 0; i < array.length; i++){ |
| 94493 | if (predict(array[i])) return true; |
| 94494 | } |
| 94495 | return false; |
| 94496 | } |
| 94497 | function enhancePointerEventInput(PointerEventInput) { |
| 94498 | const oldHandler = PointerEventInput.prototype.handler; |
| 94499 | // overrides PointerEventInput.handler to accept right mouse button |
no test coverage detected