react-events.js
function() {
                var args = Array.prototype.slice.call(arguments),
                    target = this;

                // allow the first parameter to be the target
                if (typeof args[0] !== 'string') {
                    target = args[0];
                    args.splice(0, 1);
                }

                return function() {
                    target.trigger.apply(target, args);
                };
            }
function() {
                var args = Array.prototype.slice.call(arguments),
                    target = this;

                // allow the first parameter to be the target
                if (typeof args[0] !== 'string') {
                    target = args[0];
                    args.splice(0, 1);
                }

                return function() {
                    target.trigger.apply(target, args);
                };
            }
Return a callback fundtion that will trigger an event on "this" when executed with the provided parameters