Skip to content

Instantly share code, notes, and snippets.

@superhero
Last active August 29, 2015 13:57
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 superhero/9655508 to your computer and use it in GitHub Desktop.
Save superhero/9655508 to your computer and use it in GitHub Desktop.
Shift.Log
Shift.Log = function()
{
this.router =
{
'error.*': 'error'
};
this.view =
{
error: function(e)
{
if(window.console && window.console.log)
console.log(e);
}
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment