I\'m writing a global error handling \"module\" for one of my applications.
One of the features I want to have is to be able to easily wrap a function with a t
Object.extend(Function.prototype, { Object.extend in the Google Chrome Console gives me 'undefined' Well here's some working example:
Boolean.prototype.XOR =
// ^- Note that it's a captial 'B' and so
// you'll work on the Class and not the >b " true.XOR( false ) );
so instead of Object.extend(Function.prototype, {...}) Do it like: Function.prototype.extend = {}