I hereby claim:
- I am murrayju on github.
- I am murrayju (https://keybase.io/murrayju) on keybase.
- I have a public key ASA6dHkV-wvQ9t6KHMr8D7QVIw6pbNl_cWwWX5KqaZjCgQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
define [], () -> | |
Array.prototype.unstableSort = Array.prototype.sort | |
Array.prototype.sort = (compareFn) -> | |
compareFn ?= (a, b) -> a?.toString?()?.localeCompare?(b?.toString?()) || 0 | |
list = ({ pos: i, val: v} for v, i in this) | |
list.unstableSort (a, b) -> | |
comp = compareFn(a.val, b.val) |
util.xmlDiff = function (orig, diff) { | |
expect(typeof orig).toEqual('string'); | |
expect(typeof diff).toEqual('string'); | |
var source = prettydiff({ | |
source: orig, | |
lang: 'markup', | |
mode: 'minify' | |
}); | |
var changedDoc = prettydiff({ | |
source: diff, |