Changeset 27435
- Timestamp:
- 03/06/2014 04:05:48 PM (10 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-editor.js
r27415 r27435 274 274 } 275 275 }; 276 276 277 277 /** 278 278 * @mixin … … 585 585 var self = this; 586 586 587 587 _.each( wp.media.audio.defaults, function( value, key ) { 588 588 shortcode[ key ] = self.coerce( shortcode, key ); 589 589 590 591 592 } 593 590 if ( value === shortcode[ key ] ) { 591 delete shortcode[ key ]; 592 } 593 }); 594 594 595 595 return wp.shortcode.string({ … … 629 629 shortcode : function (shortcode) { 630 630 var self = this; 631 631 _.each( wp.media.video.defaults, function( value, key ) { 632 632 shortcode[ key ] = self.coerce( shortcode, key ); 633 633 634 635 636 } 637 634 if ( value === shortcode[ key ] ) { 635 delete shortcode[ key ]; 636 } 637 }); 638 638 639 639 return wp.shortcode.string({ -
trunk/src/wp-includes/js/media-models.js
r27411 r27435 458 458 * @augments Backbone.Model 459 459 **/ 460 PostAudio =media.model.PostAudio = Backbone.Model.extend({460 media.model.PostAudio = Backbone.Model.extend({ 461 461 initialize: function() { 462 462 this.attachment = false; 463 463 }, 464 464 465 changeAttachment: function( attachment , props) {465 changeAttachment: function( attachment ) { 466 466 var self = this; 467 467 … … 487 487 * @augments Backbone.Model 488 488 **/ 489 PostVideo =media.model.PostVideo = Backbone.Model.extend({489 media.model.PostVideo = Backbone.Model.extend({ 490 490 initialize: function() { 491 491 this.attachment = false; 492 492 }, 493 493 494 changeAttachment: function( attachment , props) {494 changeAttachment: function( attachment ) { 495 495 var self = this; 496 496 -
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 */ 2 3 (function($, _){ 3 4 var media = wp.media, l10n;
Note: See TracChangeset
for help on using the changeset viewer.