Skip to content

Instantly share code, notes, and snippets.

@ColinCampbell
Created March 8, 2011 17:51
Show Gist options
  • Select an option

  • Save ColinCampbell/860641 to your computer and use it in GitHub Desktop.

Select an option

Save ColinCampbell/860641 to your computer and use it in GitHub Desktop.
SC.Request = SC.Request.extend({
_address: null,
address: function(key, value) {
if (value !== undefined) this._address = value;
else value = this._address;
return this.get('baseUrl') + value;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment