From 5267c64e5fdadea1f4ec981f5d1ce9eacaba21de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Thu, 17 Jul 2014 20:46:14 +0000 Subject: [PATCH] Fix jshint errors introduced in [29212]. see #28842. Built from https://develop.svn.wordpress.org/trunk@29213 git-svn-id: http://core.svn.wordpress.org/trunk@28997 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-grid.js | 16 ++++++++-------- wp-includes/js/media-views.js | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-includes/js/media-grid.js b/wp-includes/js/media-grid.js index 2ccf255e97..67f4dc53b0 100644 --- a/wp-includes/js/media-grid.js +++ b/wp-includes/js/media-grid.js @@ -1,4 +1,4 @@ -/* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */ +/* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings, confirm */ (function($, _, Backbone, wp) { var media = wp.media, l10n; @@ -603,12 +603,12 @@ } }); - media.view.BulkSelection = media.View.extend({ + media.view.BulkSelection = media.View.extend({ className: 'bulk-select', initialize: function() { this.model = new Backbone.Model({ - currentAction: '', + currentAction: '' }); @@ -631,8 +631,8 @@ media.view.BulkSelectionActionDropdown = media.View.extend({ tagName: 'select', - initialize: function() { - media.view.Button.prototype.initialize.apply( this, arguments ); + initialize: function() { + media.view.Button.prototype.initialize.apply( this, arguments ); this.listenTo( this.controller.controller.state().get( 'selection' ), 'add remove reset', _.bind( this.enabled, this ) ); this.$el.append( $('').val( '' ).html( l10n.bulkActions ) ) .append( $('').val( 'delete' ).html( l10n.deletePermanently ) ); @@ -642,12 +642,12 @@ toggleChange: function() { this.controller.model.set( { 'currentAction': this.$el.val() } ); - }, + }, enabled: function() { var disabled = ! this.controller.controller.state().get('selection').length; this.$el.prop( 'disabled', disabled ); - } - }); + } + }); media.view.BulkSelectionActionButton = media.view.Button.extend({ tagName: 'button', diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 0da70e809f..ffb1ee890b 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -5660,9 +5660,9 @@ }).render() ); this.toolbar.set( 'BulkSelection', new media.view.BulkSelection({ - controller: this.controller, - priority: -70 - }).render() ); + controller: this.controller, + priority: -70 + }).render() ); } filters = this.options.filters;