From c0af952db40ad4a51e3e64e7c63b8ca48b5a6864 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 9 Jul 2013 08:15:55 +0000 Subject: [PATCH] Revisions: Remove unnecessary router property. See #24425. git-svn-id: http://core.svn.wordpress.org/trunk@24607 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 80157d6d7b..f3834aaabb 100644 --- a/wp-admin/js/revisions.js +++ b/wp-admin/js/revisions.js @@ -3,7 +3,7 @@ window.wp = window.wp || {}; (function($) { var revisions; - revisions = wp.revisions = { model: {}, view: {}, controller: {}, router: {} }; + revisions = wp.revisions = { model: {}, view: {}, controller: {} }; // Link settings. revisions.settings = typeof _wpRevisionsSettings === 'undefined' ? {} : _wpRevisionsSettings; @@ -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.Router({ model: this }); + this.revisionsRouter = new revisions.Router({ model: this }); }, // So long as `from` and `to` are changed at the same time, the diff @@ -791,7 +791,7 @@ window.wp = window.wp || {}; // The revisions router // takes URLs with #hash fragments and routes them - revisions.router.Router = Backbone.Router.extend({ + revisions.Router = Backbone.Router.extend({ initialize: function( options ) { this.model = options.model;