mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 01:05:00 +00:00
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…
x
Reference in New Issue
Block a user