CoreFiles by mySites.guru
selection.js22 lines, 490 bytes, from wordpress-4.2-beta4.zip
Raw History Compare with 4.2-beta3
md5
2695989e351a70e01f81d696bb3a8c44
sha1
6b5e95a22cbbb38bb09b782572de4b8c5121b496
sha256
bdcb084d71f127fcdc45f20e79966bb6f4a6c2b00858c6614e8fd1342fa8cb58
/*globals wp */

/**
 * wp.media.view.Attachment.Selection
 *
 * @class
 * @augments wp.media.view.Attachment
 * @augments wp.media.View
 * @augments wp.Backbone.View
 * @augments Backbone.View
 */
var Selection = wp.media.view.Attachment.extend({
	className: 'attachment selection',

	// On click, just select the model, instead of removing the model from
	// the selection.
	toggleSelection: function() {
		this.options.selection.single( this.model );
	}
});

module.exports = Selection;

No other release has this exact content. See every version of this file.