laughinghan/mathquill — pull request #108 by laughinghan (2012-07-23 06:47:28+00:00)
Title: use nextOrPrev() to de-duplicate cursor.js

Another alternative to #106 and #107.

Based on ff3215dd81660b4d82d06cdabd89822a2e76f77a, but without the whole `prev`,`next`,`first`,`last` ⇒ `left`,`right`,`leftmost`,`rightmost` business, because
`prev`,`next`,`first`,`last` lets us easily match jQuery.

The downside is `hop[next]` is kinda weirder to read than `hop[left]`, because left and right are directions whereas prev and next are pointers.

Yet another possibility would be something like
````js
var left = new String('prev');
var right = new String('next');
```
Then some things, like `move[left]`, would read easier, but `left = new String('prev')` itself is weird as all hell.

I dunno.