plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).
http://plasma-umass.github.io/doppio-demo
MIT License
2.16k stars 175 forks source link

minor rewrite: move variable declarations to innermost scope #405

Closed hrj closed 8 years ago

hrj commented 8 years ago

also avoid indexing array twice.

jvilk commented 8 years ago

Looks great. Thanks! The array index, btw, should only occur once in release builds. As long as I didn't break anything, uglify should remove the if (!RELEASE) branch entirely. Your code is cleaner, though, so I'll accept it.