WikiEdit

Help needed.

ECMAScript 2015 (ES6)


  • converted constructor functions to class declarations
  • "for of" should be used with Iterables
  • use Unicode properties \p{…}
  • use regular expression literals
  • 'var' is used instead of 'let' or 'const'

Autocomplete

Autocomplete is not functional, needs fixes. Anyone who can fix this?

  • key up down moves cursor
  • clicking list does not insert the link on the spot
  • replace old MZ and IE cases with ES6 variant

issues

autocomplete.js:130 Uncaught TypeError: Cannot read properties of undefined (reading 'createRange')
    at AutoComplete.redrawInplace (autocomplete.js:130)
    at AutoComplete.visualState (autocomplete.js:439)
    at AutoComplete.finishComplete (autocomplete.js:340)
    at launchFinishComplete (autocomplete.js:509)
    at XMLHttpRequest.req.onreadystatechange (autocomplete.js:491)