CoreFiles by mySites.guru
iframe.js25 lines, 502 bytes, from wordpress-4.2-beta1.zip
Raw History Compare with 4.1-beta2
md5
6f86b073f43fa8e85a3be1356974901f
sha1
e802f6dc9ba0d16d717283e63bc9e80660a4edac
sha256
0646fba1a6dadcf1a53b94de25dffd3368436f3d52cdb9a2a4fe1b473d9d1c62
/**
 * wp.media.view.Iframe
 *
 * @class
 * @augments wp.media.View
 * @augments wp.Backbone.View
 * @augments Backbone.View
 */
var View = require( './view.js' ),
	Iframe;

Iframe = View.extend({
	className: 'media-iframe',
	/**
	 * @returns {wp.media.view.Iframe} Returns itself to allow chaining
	 */
	render: function() {
		this.views.detach();
		this.$el.html( '<iframe src="' + this.controller.state().get('src') + '" />' );
		this.views.render();
		return this;
	}
});

module.exports = Iframe;

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