laughinghan/mathquill — pull request #107 by laughinghan (2012-07-23 05:55:14+00:00)
Title: Refactor directions (alternative)

An alternative to #106 `refactor.direction`, with a completely different approach, check out `intro.js` and `cursor.js`.

Note: successfully mostly de-duplicated `cursor.js`, and all tests pass, 0 bugs as far as I can tell.

Deals with `.jQ.first/last/prev/next()` hardly better than `refactor.direction`, but at least deals with `.jQ.insertBefore/insertAfter/prependTo/appendTo` a little nicer.