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
This commit is contained in:
Scott Taylor 2014-03-06 16:05:48 +00:00
parent 745f24b2d4
commit 99e98b3e93
3 changed files with 15 additions and 14 deletions

View File

@ -273,7 +273,7 @@
return html; return html;
} }
}; };
/** /**
* @mixin * @mixin
*/ */
@ -584,13 +584,13 @@
shortcode : function (shortcode) { shortcode : function (shortcode) {
var self = this; 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 ); shortcode[ key ] = self.coerce( shortcode, key );
if ( value === shortcode[ key ] ) { if ( value === shortcode[ key ] ) {
delete shortcode[ key ]; delete shortcode[ key ];
} }
}); });
return wp.shortcode.string({ return wp.shortcode.string({
tag: 'audio', tag: 'audio',
@ -628,13 +628,13 @@
shortcode : function (shortcode) { shortcode : function (shortcode) {
var self = this; 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 ); shortcode[ key ] = self.coerce( shortcode, key );
if ( value === shortcode[ key ] ) { if ( value === shortcode[ key ] ) {
delete shortcode[ key ]; delete shortcode[ key ];
} }
}); });
return wp.shortcode.string({ return wp.shortcode.string({
tag: 'video', tag: 'video',

View File

@ -457,12 +457,12 @@ window.wp = window.wp || {};
* @constructor * @constructor
* @augments Backbone.Model * @augments Backbone.Model
**/ **/
PostAudio = media.model.PostAudio = Backbone.Model.extend({ media.model.PostAudio = Backbone.Model.extend({
initialize: function() { initialize: function() {
this.attachment = false; this.attachment = false;
}, },
changeAttachment: function( attachment, props ) { changeAttachment: function( attachment ) {
var self = this; var self = this;
this.attachment = attachment; this.attachment = attachment;
@ -486,12 +486,12 @@ window.wp = window.wp || {};
* @constructor * @constructor
* @augments Backbone.Model * @augments Backbone.Model
**/ **/
PostVideo = media.model.PostVideo = Backbone.Model.extend({ media.model.PostVideo = Backbone.Model.extend({
initialize: function() { initialize: function() {
this.attachment = false; this.attachment = false;
}, },
changeAttachment: function( attachment, props ) { changeAttachment: function( attachment ) {
var self = this; var self = this;
this.attachment = attachment; this.attachment = attachment;

View File

@ -1,4 +1,5 @@
/* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */ /* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer,
confirm, getUserSetting, setUserSetting */
(function($, _){ (function($, _){
var media = wp.media, l10n; var media = wp.media, l10n;