(text)
| 1983 | |
| 1984 | |
| 1985 | var isAllSelected = function(text) { |
| 1986 | return text.selectionStart === 0 && text.selectionEnd === text.value.length; |
| 1987 | }; |
| 1988 | if (!text.setSelectionRange && text.createTextRange) { |
| 1989 | text.setSelectionRange = function(selectionStart, selectionEnd) { |
| 1990 | var range = this.createTextRange(); |