CoreFiles by mySites.guru
label.js27 lines, 415 bytes, from wordpress-4.2-beta2.zip
Raw History Compare with 4.2-beta1
md5
07ffdd48cd82e76fc6bee0ae0a0ce9f5
sha1
9575c27f7d210d474320aae3a90d960d0d0b0433
sha256
2f836e2b5e1b004a9a24b78624cddee65f143ab04a1024cb3d6a07a55ae1ce12
/**
 * wp.media.view.Label
 *
 * @class
 * @augments wp.media.View
 * @augments wp.Backbone.View
 * @augments Backbone.View
 */
var View = require( './view.js' ),
	Label;

Label = View.extend({
	tagName: 'label',
	className: 'screen-reader-text',

	initialize: function() {
		this.value = this.options.value;
	},

	render: function() {
		this.$el.html( this.value );

		return this;
	}
});

module.exports = Label;

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