Maintenance - use dom.js module instead of globals
With the Issue Reporter we have introduced a dom.js
module that contains commonly used $
and $$
function to query the DOM.
TODO
-
remove every call to the global E(id)
variable, replacing it with$(#id)
instead -
use $
and$$
instead ofdocument.querySelector
anddocument.querySelectorAll
-
delete function E(id) {}
-
verify if it makes sense to normalize $$
to return an array so that common operations suchfor/of
andforEach
are possible in every browser we target, including Chrome 49
Edited by Andrea Giammarchi