Revisions: Remove unnecessary router property. See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2013-07-09 08:15:55 +00:00
parent c21c38722c
commit c0af952db4

View File

@ -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;