I recently came accross this in a Library called WebApp.net:
var $h = {
get HEAD() { return 0 },
get BACK() { return 1 },
get HOME() { return 2 },
get LEFT() { return 3 },
get RIGHT() { return 4 },
get TITLE() { return 5 }
};
var $d = {
get L2R() { return +1 },
get R2L() { return -1 }
};
I'm familar with JS, but this seems to make no sense. Chrome does interpret this as Object with $h.HEAD and the others set as numbers which come after the return. Additionally, something like getters are part of $h, too.
Can anybody give me more info about this? IE cannot interpret this, so I have to make an equivalent to this.