function createMethodReference(object, methodName) { return function () { object[methodName].apply(object, arguments); }; }