Revisions: Simplify router property name. See #24425.
git-svn-id: http://core.svn.wordpress.org/trunk@24608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c0af952db4
commit
803dc4a79e
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue