JS linting for [27497].

see #21785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-03-11 04:19:25 +00:00
parent 6f2544944f
commit a9b6b9339f
3 changed files with 3 additions and 4 deletions

View File

@ -420,7 +420,7 @@
* @param {event} event * @param {event} event
*/ */
openMedia: function(event) { openMedia: function(event) {
var title, suggestedWidth, suggestedHeight, var suggestedWidth, suggestedHeight,
l10n = _wpMediaViewsL10n; l10n = _wpMediaViewsL10n;
event.preventDefault(); event.preventDefault();

View File

@ -1,4 +1,4 @@
/* globals _wpCustomizeHeader, _wpCustomizeSettings */ /* globals _wpCustomizeHeader */
(function( $, wp ) { (function( $, wp ) {
var api = wp.customize; var api = wp.customize;
api.HeaderTool = {}; api.HeaderTool = {};
@ -88,7 +88,7 @@
nonce: _wpCustomizeHeader.nonces.add, nonce: _wpCustomizeHeader.nonces.add,
wp_customize: 'on', wp_customize: 'on',
theme: api.settings.theme.stylesheet, theme: api.settings.theme.stylesheet,
attachment_id: data.attachment_id, attachment_id: data.attachment_id
} ); } );
}, },

View File

@ -1381,7 +1381,6 @@
this.$el.text(l10n.cropping); this.$el.text(l10n.cropping);
this.$el.attr('disabled', true); this.$el.attr('disabled', true);
this.controller.state().doCrop( selection ).done( function( croppedImage ) { this.controller.state().doCrop( selection ).done( function( croppedImage ) {
console.log( croppedImage );
self.controller.trigger('cropped', croppedImage ); self.controller.trigger('cropped', croppedImage );
self.controller.close(); self.controller.close();
}); });