From 99e98b3e936f7055ced59c8b072527be18de7877 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 6 Mar 2014 16:05:48 +0000 Subject: [PATCH] We shall pledge to run `jshint` before committing. Props nacin for the nudge. git-svn-id: https://develop.svn.wordpress.org/trunk@27435 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-editor.js | 18 +++++++++--------- src/wp-includes/js/media-models.js | 8 ++++---- src/wp-includes/js/media-views.js | 3 ++- 3 files changed, 15 insertions(+), 14 deletions(-) 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;