diff --git a/src/wp-includes/js/media-editor.js b/src/wp-includes/js/media-editor.js index d73f2247fc..a0cb52ea03 100644 --- a/src/wp-includes/js/media-editor.js +++ b/src/wp-includes/js/media-editor.js @@ -273,7 +273,7 @@ return html; } }; - + /** * @mixin */ @@ -584,13 +584,13 @@ shortcode : function (shortcode) { var self = this; - _.each( wp.media.audio.defaults, function( value, key ) { + _.each( wp.media.audio.defaults, function( value, key ) { shortcode[ key ] = self.coerce( shortcode, key ); - if ( value === shortcode[ key ] ) { - delete shortcode[ key ]; + if ( value === shortcode[ key ] ) { + delete shortcode[ key ]; } - }); + }); return wp.shortcode.string({ tag: 'audio', @@ -628,13 +628,13 @@ shortcode : function (shortcode) { var self = this; - _.each( wp.media.video.defaults, function( value, key ) { + _.each( wp.media.video.defaults, function( value, key ) { shortcode[ key ] = self.coerce( shortcode, key ); - if ( value === shortcode[ key ] ) { - delete shortcode[ key ]; + if ( value === shortcode[ key ] ) { + delete shortcode[ key ]; } - }); + }); return wp.shortcode.string({ tag: 'video', diff --git a/src/wp-includes/js/media-models.js b/src/wp-includes/js/media-models.js index bfafbd1580..adbbca249f 100644 --- a/src/wp-includes/js/media-models.js +++ b/src/wp-includes/js/media-models.js @@ -457,12 +457,12 @@ window.wp = window.wp || {}; * @constructor * @augments Backbone.Model **/ - PostAudio = media.model.PostAudio = Backbone.Model.extend({ + media.model.PostAudio = Backbone.Model.extend({ initialize: function() { this.attachment = false; }, - changeAttachment: function( attachment, props ) { + changeAttachment: function( attachment ) { var self = this; this.attachment = attachment; @@ -486,12 +486,12 @@ window.wp = window.wp || {}; * @constructor * @augments Backbone.Model **/ - PostVideo = media.model.PostVideo = Backbone.Model.extend({ + media.model.PostVideo = Backbone.Model.extend({ initialize: function() { this.attachment = false; }, - changeAttachment: function( attachment, props ) { + changeAttachment: function( attachment ) { var self = this; this.attachment = attachment; diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index c3f15f9679..9d39b8da17 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -1,4 +1,5 @@ -/* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */ +/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer, + confirm, getUserSetting, setUserSetting */ (function($, _){ var media = wp.media, l10n;