Skip to content

Instantly share code, notes, and snippets.

@fxck
Created June 14, 2013 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxck/5780974 to your computer and use it in GitHub Desktop.
Save fxck/5780974 to your computer and use it in GitHub Desktop.
_postGetHandler: function(method, url, data, callback, type) {
var self = this;
if ($.isFunction(data)) {
type = type || callback;
callback = data;
data = undefined;
}
self.ajax({
url: url,
type: method,
dataType: type,
data: data,
success: callback
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment