Docs: Improve JSDoc for `media/views/spinner.js`.
Amends r42675 - includes the built media files. Built from https://develop.svn.wordpress.org/trunk@42709 git-svn-id: http://core.svn.wordpress.org/trunk@42537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
87130f0e20
commit
5e190dc084
|
@ -9369,6 +9369,10 @@ module.exports = EditImage;
|
||||||
/**
|
/**
|
||||||
* wp.media.view.Spinner
|
* wp.media.view.Spinner
|
||||||
*
|
*
|
||||||
|
* Represents a spinner in the Media Library.
|
||||||
|
*
|
||||||
|
* @since 3.9.0
|
||||||
|
*
|
||||||
* @memberOf wp.media.view
|
* @memberOf wp.media.view
|
||||||
*
|
*
|
||||||
* @class
|
* @class
|
||||||
|
@ -9382,6 +9386,13 @@ var Spinner = wp.media.View.extend(/** @lends wp.media.view.Spinner.prototype */
|
||||||
spinnerTimeout: false,
|
spinnerTimeout: false,
|
||||||
delay: 400,
|
delay: 400,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shows the spinner. Delays the visibility by the configured amount.
|
||||||
|
*
|
||||||
|
* @since 3.9.0
|
||||||
|
*
|
||||||
|
* @return {wp.media.view.Spinner} The spinner.
|
||||||
|
*/
|
||||||
show: function() {
|
show: function() {
|
||||||
if ( ! this.spinnerTimeout ) {
|
if ( ! this.spinnerTimeout ) {
|
||||||
this.spinnerTimeout = _.delay(function( $el ) {
|
this.spinnerTimeout = _.delay(function( $el ) {
|
||||||
|
@ -9392,6 +9403,13 @@ var Spinner = wp.media.View.extend(/** @lends wp.media.view.Spinner.prototype */
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hides the spinner.
|
||||||
|
*
|
||||||
|
* @since 3.9.0
|
||||||
|
*
|
||||||
|
* @return {wp.media.view.Spinner} The spinner.
|
||||||
|
*/
|
||||||
hide: function() {
|
hide: function() {
|
||||||
this.$el.removeClass( 'is-active' );
|
this.$el.removeClass( 'is-active' );
|
||||||
this.spinnerTimeout = clearTimeout( this.spinnerTimeout );
|
this.spinnerTimeout = clearTimeout( this.spinnerTimeout );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-42708';
|
$wp_version = '5.0-alpha-42709';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue