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
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ window.wp = window.wp || {};
(function($) { (function($) {
var revisions; var revisions;
revisions = wp.revisions = { model: {}, view: {}, controller: {}, router: {} }; revisions = wp.revisions = { model: {}, view: {}, controller: {} };
// Link settings. // Link settings.
revisions.settings = typeof _wpRevisionsSettings === 'undefined' ? {} : _wpRevisionsSettings; revisions.settings = typeof _wpRevisionsSettings === 'undefined' ? {} : _wpRevisionsSettings;
@ -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.Router({ model: this }); this.revisionsRouter = 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
@ -791,7 +791,7 @@ window.wp = window.wp || {};
// The revisions router // The revisions router
// takes URLs with #hash fragments and routes them // takes URLs with #hash fragments and routes them
revisions.router.Router = Backbone.Router.extend({ revisions.Router = Backbone.Router.extend({
initialize: function( options ) { initialize: function( options ) {
this.model = options.model; this.model = options.model;