Docs: Improve JSDoc for `js/media/controllers/edit-image.js`.
Amends r42392 - includes the built media files. Built from https://develop.svn.wordpress.org/trunk@42410 git-svn-id: http://core.svn.wordpress.org/trunk@42239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df07690883
commit
65b715c991
|
@ -2045,21 +2045,37 @@ EditImage = wp.media.controller.State.extend(/** @lends wp.media.controller.Edit
|
|||
},
|
||||
|
||||
/**
|
||||
* Activates a frame for editing a featured image.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
activate: function() {
|
||||
this.frame.on( 'toolbar:render:edit-image', _.bind( this.toolbar, this ) );
|
||||
},
|
||||
|
||||
/**
|
||||
* Deactivates a frame for editing a featured image.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
deactivate: function() {
|
||||
this.frame.off( 'toolbar:render:edit-image' );
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a toolbar with a back button.
|
||||
*
|
||||
* When the back button is pressed it checks whether there is a previous state.
|
||||
* In case there is a previous state it sets that previous state otherwise it
|
||||
* closes the frame.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
toolbar: function() {
|
||||
var frame = this.frame,
|
||||
|
@ -3725,7 +3741,8 @@ Post = Select.extend(/** @lends wp.media.view.MediaFrame.Post.prototype */{
|
|||
requires: { selection: true },
|
||||
|
||||
/**
|
||||
* @callback
|
||||
* @ignore
|
||||
*
|
||||
* @fires wp.media.controller.State#insert
|
||||
*/
|
||||
click: function() {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42409';
|
||||
$wp_version = '5.0-alpha-42410';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue