Improves selector optimizer.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 29 Sep 2014 12:01:20 +0000 (13:01 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 10 Oct 2014 20:22:44 +0000 (21:22 +0100)
commit6581b5a98ed67d290f0e2ebd56559d830dcda793
treedafcf54bdffaebb2a7402ff47a14224df29f844e
parentef93abfc8454bca8d98391e0ec53ee1d85235d4b
Improves selector optimizer.

* Turns to prototypal OO.
* Adds specs.
* Extracts Simple & Advanced optimizers into separate modules.
* Adds nasty workarounds as property optimizer is incompatible with new tokenizer output.
lib/selectors/optimizer.js
lib/selectors/optimizers/advanced.js [new file with mode: 0644]
lib/selectors/optimizers/clean-up.js [new file with mode: 0644]
lib/selectors/optimizers/simple.js [new file with mode: 0644]
test/integration-test.js
test/selectors/optimizer-test.js [new file with mode: 0644]
test/selectors/optimizers/simple-test.js [new file with mode: 0644]