Changeset 30127
- Timestamp:
- 10/31/2014 11:54:50 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/js/revisions.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/revisions.js
r29052 r30127 1 1 /* global _wpRevisionsSettings, isRtl */ 2 /** 3 * @file Revisions interface functions, Backbone classes and 4 * the revisions.php document.ready bootstrap. 5 * 6 */ 7 2 8 window.wp = window.wp || {}; 3 9 4 10 (function($) { 5 11 var revisions; 6 12 /** 13 * Expose the module in window.wp.revisions. 14 */ 7 15 revisions = wp.revisions = { model: {}, view: {}, controller: {} }; 8 16 … … 13 21 revisions.debug = false; 14 22 23 /** 24 * wp.revisions.log 25 * 26 * A debugging utility for revisions. Works only when a 27 * debug flag is on and the browser supports it. 28 */ 15 29 revisions.log = function() { 16 30 if ( window.console && revisions.debug ) { … … 180 194 revisions.model.Revision = Backbone.Model.extend({}); 181 195 196 /** 197 * wp.revisions.model.Revisions 198 * 199 * A collection of post revisions. 200 */ 182 201 revisions.model.Revisions = Backbone.Collection.extend({ 183 202 model: revisions.model.Revision, … … 353 372 354 373 374 /** 375 * wp.revisions.model.FrameState 376 * 377 * The frame state. 378 * 379 * @see wp.revisions.view.Frame 380 * 381 * @param {object} attributes Model attributes - none are required. 382 * @param {object} options Options for the model. 383 * @param {revisions.model.Revisions} options.revisions A collection of revisions. 384 */ 355 385 revisions.model.FrameState = Backbone.Model.extend({ 356 386 defaults: { … … 500 530 */ 501 531 502 // The frame view. This contains the entire page. 532 /** 533 * wp.revisions.view.Frame 534 * 535 * Top level frame that orchestrates the revisions experience. 536 * 537 * @param {object} options The options hash for the view. 538 * @param {revisions.model.FrameState} options.model The frame state model. 539 */ 503 540 revisions.view.Frame = wp.Backbone.View.extend({ 504 541 className: 'revisions', … … 547 584 }); 548 585 549 // The control view. 550 // This contains the revision slider, previous/next buttons, the meta info and the compare checkbox. 586 /** 587 * wp.revisions.view.Controls 588 * 589 * The controls view. 590 * 591 * Contains the revision slider, previous/next buttons, the meta info and the compare checkbox. 592 */ 551 593 revisions.view.Controls = wp.Backbone.View.extend({ 552 594 className: 'revisions-controls',
Note: See TracChangeset
for help on using the changeset viewer.