Minor documentation change to `PageTracker`
This commit is contained in:
parent
5fc150e057
commit
1cda92c753
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue