MCPcopy Index your code
hub / github.com/csev/py4e / selectInput

Function selectInput

tools/pythonauto/static/codemirror/codemirror.js:5607–5616  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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);

Callers 2

resetInputFunction · 0.70
prepareCopyFunction · 0.70

Calls 1

selectMethod · 0.45

Tested by

no test coverage detected