Changeset 36233
- Timestamp:
- 01/09/2016 02:21:28 AM (9 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-audiovideo.js
r33337 r36233 793 793 */ 794 794 setPlayer : function() { 795 var baseSettings ;795 var baseSettings, src; 796 796 797 797 if ( this.players.length || ! this.media || this.scriptXhr ) { … … 799 799 } 800 800 801 if ( this.model.get( 'src' ).indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) { 801 src = this.model.get( 'src' ); 802 803 if ( src && src.indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) { 802 804 baseSettings = wp.media.mixin.mejsSettings; 803 805 this.scriptXhr = $.getScript( baseSettings.pluginPath + 'froogaloop.min.js', _.bind( this.loadPlayer, this ) ); -
trunk/src/wp-includes/js/media/views/media-details.js
r33337 r36233 88 88 */ 89 89 setPlayer : function() { 90 var baseSettings ;90 var baseSettings, src; 91 91 92 92 if ( this.players.length || ! this.media || this.scriptXhr ) { … … 94 94 } 95 95 96 if ( this.model.get( 'src' ).indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) { 96 src = this.model.get( 'src' ); 97 98 if ( src && src.indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) { 97 99 baseSettings = wp.media.mixin.mejsSettings; 98 100 this.scriptXhr = $.getScript( baseSettings.pluginPath + 'froogaloop.min.js', _.bind( this.loadPlayer, this ) );
Note: See TracChangeset
for help on using the changeset viewer.