Don't you just want to call `$.proxyAll(this, ...);`? See this example: <http://docs.ckan.org/en/latest/theming/javascript.html#ajax-event-handling-and-ckan-s-javascript-sandbox>