Revisions: Simplify router property name. See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24608 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2013-07-09 08:20:12 +00:00
parent 155046f796
commit f2ab17ee13
1 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ window.wp = window.wp || {};
this.diffs = new revisions.model.Diffs( [], { revisions: this.revisions }); this.diffs = new revisions.model.Diffs( [], { revisions: this.revisions });
this.listenTo( this, 'change:from', this.updateDiff ); this.listenTo( this, 'change:from', this.updateDiff );
this.listenTo( this, 'change:to', this.updateDiff ); this.listenTo( this, 'change:to', this.updateDiff );
this.revisionsRouter = new revisions.Router({ model: this }); this.router = new revisions.Router({ model: this });
}, },
// So long as `from` and `to` are changed at the same time, the diff // So long as `from` and `to` are changed at the same time, the diff
@ -412,7 +412,7 @@ window.wp = window.wp || {};
this.model.set({ compareTwoMode: $('.compare-two-revisions').prop('checked') }); this.model.set({ compareTwoMode: $('.compare-two-revisions').prop('checked') });
// Update route // Update route
this.model.revisionsRouter.updateUrl(); this.model.router.updateUrl();
}, },
ready: function() { ready: function() {
@ -498,7 +498,7 @@ window.wp = window.wp || {};
this.model.set( attributes ); this.model.set( attributes );
// Update route // Update route
this.model.revisionsRouter.updateUrl(); this.model.router.updateUrl();
}, },
// Go to the 'next' revision, direction takes into account RTL mode. // Go to the 'next' revision, direction takes into account RTL mode.