Revisions: Remove unnecessary router property. See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24607 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2013-07-09 08:15:55 +00:00
parent 0e8e4b4e49
commit 155046f796
1 changed files with 3 additions and 3 deletions

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;