Ticket #43230: spinner.2.diff
File spinner.2.diff, 1008 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/js/media/views/spinner.js
1 1 /** 2 2 * wp.media.view.Spinner 3 3 * 4 * Represents a spinner in the Media Library. 5 * 6 * @since 3.7.6 7 * 4 8 * @memberOf wp.media.view 5 9 * 6 10 * @class … … 14 18 spinnerTimeout: false, 15 19 delay: 400, 16 20 21 /** 22 * Shows the spinner. 23 * 24 * @since 3.7.6 25 * @access public 26 * 27 * @return {wp.media.view.Spinner} The spinner. 28 */ 17 29 show: function() { 18 30 if ( ! this.spinnerTimeout ) { 19 31 this.spinnerTimeout = _.delay(function( $el ) { … … 24 36 return this; 25 37 }, 26 38 39 /** 40 * Hides the spinner. 41 * 42 * @since 3.7.6 43 * @access public 44 * 45 * @return {wp.media.view.Spinner} The spinner. 46 */ 27 47 hide: function() { 28 48 this.$el.removeClass( 'is-active' ); 29 49 this.spinnerTimeout = clearTimeout( this.spinnerTimeout );