4 ms·
Why not just give the globals single letter names instead of removing letters? The code is shorter and produces shorter names with no conflicts: a=65;
by tlrobinson 15y ago
Why not just give the globals single letter names instead of removing letters? The code is shorter and produces shorter names with no conflicts:
a=65;
for(k in g = z.getContext('experimental-webgl'))
t[String.fromCharCode(a)] = t[k] = g[k].bind && a++ && g[k].bind(g);
(this starts with uppercase "A", char code 65)
- daeken 15y agoThat was my first thought, actually, but due to differences between Firefox and Chrome, you end up with different variable names, even sometimes between versions. I tried a few hacks, but couldn't work around it.