simulacra
simulacra copied to clipboard
TODOs
- [x] Fix
js-framework-benchmark
by usingappendChild
rather thaninsertBefore
in the edge case when the marker node is the last node, ~~perfect case of optimizing for benchmarks...~~ this seems to not be a bottleneck - [x] ~~Improve create/append speed by memoizing positions of matched nodes after cloning.~~ not now
- [x]
bindEvent
helper should consider nested events and unbind those on removal (maybe? is something likeinert
possible or just a capturing event listener that does nothing?) https://github.com/daliwali/simulacra/commit/c02f56ec234bd11c5f6ab72f0a831bdd33f662e4 - [x] Refactor: remove usage of WeakMap, the only ES6 API used besides symbols (may be the best option still for DOM nodes though, unsure of benefits and drawbacks).
- [ ] Add
simulacra.rerender
symbol, to force a change to occur for the same value. - [ ] Investigate using the
Range
API (link) - [ ] Lisp rewrite #51