Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created December 16, 2013 00:25
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 abuiles/7980431 to your computer and use it in GitHub Desktop.
Save abuiles/7980431 to your computer and use it in GitHub Desktop.
if (typeof query !== "undefined" && query !== null){
return this.ajax(this.buildURL(type.typeKey, id), 'GET', { data: query });
} else {
return this.ajax(this.buildURL(type.typeKey, id), 'GET');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment