CoreFiles by mySites.guru
selection.js31 lines, 748 bytes, from wordpress-4.2-beta2.zip
Raw History Compare with 4.2-beta1
md5
c2c3500dfb1a56c5f19c4c3d596dfac4
sha1
dfb2036015f2a31a74f9a197482dbbf605e15fec
sha256
f7d70b4f0a76fa5af3b9f5449fde18030390b466d036f54c8c6822f9eef2f206
/*globals _ */

/**
 * wp.media.view.Attachments.Selection
 *
 * @class
 * @augments wp.media.view.Attachments
 * @augments wp.media.View
 * @augments wp.Backbone.View
 * @augments Backbone.View
 */
var Attachments = require( '../attachments.js' ),
	AttachmentSelection = require( '../attachment/selection.js' ),
	Selection;

Selection = Attachments.extend({
	events: {},
	initialize: function() {
		_.defaults( this.options, {
			sortable:   false,
			resize:     false,

			// The single `Attachment` view to be used in the `Attachments` view.
			AttachmentView: AttachmentSelection
		});
		// Call 'initialize' directly on the parent class.
		return Attachments.prototype.initialize.apply( this, arguments );
	}
});

module.exports = Selection;

The same content is in 3 releases, WordPress 4.2-beta1 to 4.2-beta3. See them all, or every version of this file.