Minor documentation change to `PageTracker`

This commit is contained in:
Robin Ward 2014-10-09 15:07:10 -04:00
parent 5fc150e057
commit 1cda92c753
1 changed files with 3 additions and 7 deletions

View File

@ -5,14 +5,10 @@
To get notified when the page changes, you can install a hook like so:
```javascript
Discourse.PageTracker.current().on('change', function(url) {
console.log('the page changed to: ' + url);
Discourse.PageTracker.current().on('change', function(url, title) {
console.log('the page changed to: ' + url + ' and title ' + title);
});
```
@class PageTracker
@namespace Discourse
@module Discourse
**/
Discourse.PageTracker = Ember.Object.extend(Ember.Evented, {
start: function() {