Are there any reasons why I should not do use a function reference as the property/key of a object ? This code works in Chrome, Firefox, & IE8, but "just because something works..."
var x = {}
var a = function() { return 'a' };
var b = function() { return 'b' };
x[a] = 1
x[b] = 2
x[a] === x[a] // returns true
x[a] === x[b] // returns false
x[b] === x[b] // returns true
x[a] // returns 1
x[b] // returns 2