Executing a Function within an object

I have a strange issue currently within my event.state I have a function that I would like to execute. So you can say that event.state = function(). How I now execute this function that is stored in event.state?

Very simple:


event.state = function () {
    alert('hello, world');
};

event.state(); // alerts "hello, world"

awesome will give it a go