Make WordPress Core

Changeset 27435


Ignore:
Timestamp:
03/06/2014 04:05:48 PM (10 years ago)
Author:
wonderboymusic
Message:

We shall pledge to run jshint before committing.

Props nacin for the nudge.

Location:
trunk/src/wp-includes/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-editor.js

    r27415 r27435  
    274274        }
    275275    };
    276    
     276
    277277    /**
    278278     * @mixin
     
    585585            var self = this;
    586586
    587             _.each( wp.media.audio.defaults, function( value, key ) {
     587            _.each( wp.media.audio.defaults, function( value, key ) {
    588588                shortcode[ key ] = self.coerce( shortcode, key );
    589589
    590                 if ( value === shortcode[ key ] ) {
    591                     delete shortcode[ key ];
    592                 }
    593             });
     590                if ( value === shortcode[ key ] ) {
     591                    delete shortcode[ key ];
     592                }
     593            });
    594594
    595595            return wp.shortcode.string({
     
    629629        shortcode : function (shortcode) {
    630630            var self = this;
    631             _.each( wp.media.video.defaults, function( value, key ) {
     631            _.each( wp.media.video.defaults, function( value, key ) {
    632632                shortcode[ key ] = self.coerce( shortcode, key );
    633633
    634                 if ( value === shortcode[ key ] ) {
    635                     delete shortcode[ key ];
    636                 }
    637             });
     634                if ( value === shortcode[ key ] ) {
     635                    delete shortcode[ key ];
     636                }
     637            });
    638638
    639639            return wp.shortcode.string({
  • trunk/src/wp-includes/js/media-models.js

    r27411 r27435  
    458458     * @augments Backbone.Model
    459459     **/
    460     PostAudio = media.model.PostAudio = Backbone.Model.extend({
     460    media.model.PostAudio = Backbone.Model.extend({
    461461        initialize: function() {
    462462            this.attachment = false;
    463463        },
    464464
    465         changeAttachment: function( attachment, props ) {
     465        changeAttachment: function( attachment ) {
    466466            var self = this;
    467467
     
    487487     * @augments Backbone.Model
    488488     **/
    489     PostVideo = media.model.PostVideo = Backbone.Model.extend({
     489    media.model.PostVideo = Backbone.Model.extend({
    490490        initialize: function() {
    491491            this.attachment = false;
    492492        },
    493493
    494         changeAttachment: function( attachment, props ) {
     494        changeAttachment: function( attachment ) {
    495495            var self = this;
    496496
  • trunk/src/wp-includes/js/media-views.js

    r27420 r27435  
    1 /* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */
     1/* global _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer,
     2    confirm, getUserSetting, setUserSetting */
    23(function($, _){
    34    var media = wp.media, l10n;
Note: See TracChangeset for help on using the changeset viewer.