CoreFiles by mySites.guru
selection.js23 lines, 516 bytes, from wordpress-4.2-beta3.zip
Raw History Compare with 4.2-beta2
md5
3603a21b04be62a450ab2b7149746557
sha1
eb558cc6640b53a8b06d7234711da222bcef26d0
sha256
7b3f31b731ed9ce6c4c2b916e61aaaa5855def50f1d8cf5d21ef28140dad9628
/**
 * wp.media.view.Attachment.Selection
 *
 * @class
 * @augments wp.media.view.Attachment
 * @augments wp.media.View
 * @augments wp.Backbone.View
 * @augments Backbone.View
 */
var Attachment = require( '../attachment.js' ),
	Selection;

Selection = 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;

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