Skip to content

Instantly share code, notes, and snippets.

@grampelberg
Created January 23, 2013 02:59
Show Gist options
  • Save grampelberg/4601476 to your computer and use it in GitHub Desktop.
Save grampelberg/4601476 to your computer and use it in GitHub Desktop.
No more proxy for me zendesk!
(function() {
var scope = {};
with(scope) {
return {
events: {
'app.activated':'doSomething',
'click header': 'check'
},
doSomething: function() {
window = this.$("header")[0].ownerDocument.defaultView;
window.jQuery.get('https://cors-test.appspot.com/test', function() {
console.log(arguments);
});
}
};
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment