From 803dc4a79e53ccb1e5d6216c76edc56d8b80cff7 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 9 Jul 2013 08:20:12 +0000 Subject: [PATCH] Revisions: Simplify router property name. See #24425. git-svn-id: http://core.svn.wordpress.org/trunk@24608 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/revisions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/js/revisions.js b/wp-admin/js/revisions.js index f3834aaabb..a3d58740ab 100644 --- a/wp-admin/js/revisions.js +++ b/wp-admin/js/revisions.js @@ -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.