(node)
| 5605 | function lst(arr) { return arr[arr.length-1]; } |
| 5606 | |
| 5607 | function selectInput(node) { |
| 5608 | if (ios) { // Mobile Safari apparently has a bug where select() is broken. |
| 5609 | node.selectionStart = 0; |
| 5610 | node.selectionEnd = node.value.length; |
| 5611 | } else { |
| 5612 | // Suppress mysterious IE10 errors |
| 5613 | try { node.select(); } |
| 5614 | catch(_e) {} |
| 5615 | } |
| 5616 | } |
| 5617 | |
| 5618 | function indexOf(collection, elt) { |
| 5619 | if (collection.indexOf) return collection.indexOf(elt); |
no test coverage detected