Make sure the audio-video build does not load files from the views build.

See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31493 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-02-22 08:28:30 +00:00
parent d7af3e8bf0
commit 2b4ce0722a
7 changed files with 34 additions and 5247 deletions

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@
* @augments wp.media.controller.State
* @augments Backbone.Model
*/
var State = require( './state.js' ),
var State = wp.media.controller.State,
l10n = wp.media.view.l10n,
AudioDetails;

View File

@ -9,7 +9,7 @@
* @augments wp.media.controller.State
* @augments Backbone.Model
*/
var State = require( './state.js' ),
var State = wp.media.controller.State,
l10n = wp.media.view.l10n,
VideoDetails;

View File

@ -13,8 +13,9 @@
* @augments Backbone.View
* @mixes wp.media.controller.StateMachine
*/
var MediaDetails = require( './media-details' ),
MediaLibrary = require( '../../controllers/media-library.js' ),
var MediaDetails = wp.media.view.MediaFrame.MediaDetails,
MediaLibrary = wp.media.controller.MediaLibrary,
AudioDetailsView = require( '../audio-details.js' ),
AudioDetailsController = require( '../../controllers/audio-details.js' ),
l10n = wp.media.view.l10n,

View File

@ -12,9 +12,9 @@
* @augments Backbone.View
* @mixes wp.media.controller.StateMachine
*/
var View = require( '../view.js' ),
Toolbar = require( '../toolbar.js' ),
Select = require( './select.js' ),
var View = wp.media.View,
Toolbar = wp.media.view.Toolbar,
Select = wp.media.view.MediaFrame.Select,
l10n = wp.media.view.l10n,
MediaDetails;

View File

@ -13,8 +13,8 @@
* @augments Backbone.View
* @mixes wp.media.controller.StateMachine
*/
var MediaDetails = require( './media-details' ),
MediaLibrary = require( '../../controllers/media-library.js' ),
var MediaDetails = wp.media.view.MediaFrame.MediaDetails,
MediaLibrary = wp.media.controller.MediaLibrary,
VideoDetailsView = require( '../video-details.js' ),
VideoDetailsController = require( '../../controllers/video-details.js' ),
l10n = wp.media.view.l10n,

View File

@ -10,7 +10,7 @@
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var AttachmentDisplay = require( './settings/attachment-display.js' ),
var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
$ = jQuery,
MediaDetails;
@ -93,7 +93,7 @@ MediaDetails = AttachmentDisplay.extend({
return;
}
if ( this.media.src.indexOf( 'vimeo' ) && ! ( 'Froogaloop' in window ) ) {
if ( this.media.src.indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) {
baseSettings = wp.media.mixin.mejsSettings;
this.scriptXhr = $.getScript( baseSettings.pluginPath + 'froogaloop.min.js', _.bind( this.loadPlayer, this ) );
} else {