minor optimization
authorMihai Bazon <mihai@bazon.net>
Mon, 5 Nov 2012 11:13:06 +0000 (13:13 +0200)
committerMihai Bazon <mihai@bazon.net>
Mon, 5 Nov 2012 11:13:06 +0000 (13:13 +0200)
commit774f2ded9422903f082f0291ec69c7a6e2edfcaf
tree5346c5cee1b243d40f7a55998df3eba18ba633e2
parent85af942d64e007524d76454baf80011c3ecda2ce
minor optimization

for `==` or `!=` against a constant, prefer to display the constant first.
should help a bit after gzip, i.e.:

    typeof foo=="undefined"
    ^^^^^^    ^^^^^^^^^^^^^

vs:

    "undefined"==typeof foo
    ^^^^^^^^^^^^^^^^^^^     (longer sequence that could repeat)

idea stolen from closure.
lib/compress.js