Skip to content

Instantly share code, notes, and snippets.

@chrisgeo

chrisgeo/test.js Secret

Created September 11, 2015 23:35
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 chrisgeo/bfa501bfc3d75753e66a to your computer and use it in GitHub Desktop.
Save chrisgeo/bfa501bfc3d75753e66a to your computer and use it in GitHub Desktop.
$.ajax({
url: url,
method: 'POST',
data: initObj,
dataType: 'json'
})
.done(_.bind(this.processInitStreamData, this))
.fail(function(xhr, status, error){
console.log('failure', error);
})
.always(function(data, status, xhr){
console.log('always');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment