Skip to content

Commit

Permalink
Merge pull request quirkey#110 from deitch/master
Browse files Browse the repository at this point in the history
this.log within an app will prepend the element_selector, so you know which app it is
  • Loading branch information
quirkey committed Oct 2, 2011
2 parents fa8f070 + 6d683aa commit 0002c23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/sammy.js
Expand Up @@ -508,6 +508,12 @@
}
},

// provide log() override for inside an app that includes the relevant application element_selector
log: function() {
Sammy.log.apply(Sammy, Array.prototype.concat.apply([this.element_selector],arguments));
},


// `route()` is the main method for defining routes within an application.
// For great detail on routes, check out:
// [http://sammyjs.org/docs/routes](http://sammyjs.org/docs/routes)
Expand Down

0 comments on commit 0002c23

Please sign in to comment.