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:
parent
155046f796
commit
f2ab17ee13
@ -202,7 +202,7 @@ window.wp = window.wp || {};
|
||||
this.diffs = new revisions.model.Diffs( [], { revisions: this.revisions });
|
||||
this.listenTo( this, 'change:from', 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
|
||||
@ -412,7 +412,7 @@ window.wp = window.wp || {};
|
||||
this.model.set({ compareTwoMode: $('.compare-two-revisions').prop('checked') });
|
||||
|
||||
// Update route
|
||||
this.model.revisionsRouter.updateUrl();
|
||||
this.model.router.updateUrl();
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
@ -498,7 +498,7 @@ window.wp = window.wp || {};
|
||||
this.model.set( attributes );
|
||||
|
||||
// Update route
|
||||
this.model.revisionsRouter.updateUrl();
|
||||
this.model.router.updateUrl();
|
||||
},
|
||||
|
||||
// Go to the 'next' revision, direction takes into account RTL mode.
|
||||
|
Loading…
Reference in New Issue
Block a user