Index: src/wp-admin/js/customize-controls.js
===================================================================
--- src/wp-admin/js/customize-controls.js	(revision 26092)
+++ src/wp-admin/js/customize-controls.js	(working copy)
@@ -8,8 +8,6 @@
 	 */
 	api.Setting = api.Value.extend({
 		initialize: function( id, value, options ) {
-			var element;
-
 			api.Value.prototype.initialize.call( this, value, options );
 
 			this.id = id;
@@ -85,17 +83,17 @@
 		ready: function() {},
 
 		dropdownInit: function() {
-			var control  = this,
-				statuses = this.container.find('.dropdown-status'),
-				params   = this.params,
-				update   = function( to ) {
+			var control      = this,
+				statuses     = this.container.find('.dropdown-status'),
+				params       = this.params,
+				toggleFreeze = false,
+				update	     = function( to ) {
 					if ( typeof	to === 'string' && params.statuses && params.statuses[ to ] )
 						statuses.html( params.statuses[ to ] ).show();
 					else
 						statuses.hide();
 				};
 
-			var toggleFreeze = false;
 
 			// Support the .dropdown class to open/close complex elements
 			this.container.on( 'click keydown', '.dropdown', function( event ) {
@@ -128,12 +126,12 @@
 				picker = this.container.find('.color-picker-hex');
 
 			picker.val( control.setting() ).wpColorPicker({
-				change: function( event, options ) {
+				change: function( ) {
 					control.setting.set( picker.wpColorPicker('color') );
- 				},
- 				clear: function() {
- 					control.setting.set( false );
- 				}
+				},
+				clear: function() {
+					control.setting.set( false );
+				}
 			});
 		}
 	});
@@ -157,7 +155,7 @@
 
 			if ( control.params.extensions ) {
 				control.uploader.plupload.filters = [{
-					title:      api.l10n.allowedFiles,
+					title:		api.l10n.allowedFiles,
 					extensions: control.params.extensions
 				}];
 			}
@@ -197,7 +195,7 @@
 				panels;
 
 			this.uploader = {
-				init: function( up ) {
+				init: function( ) {
 					var fallback, button;
 
 					if ( this.supports.dragdrop )
@@ -205,7 +203,7 @@
 
 					// Maintain references while wrapping the fallback button.
 					fallback = control.container.find( '.upload-fallback' );
-					button   = fallback.children().detach();
+					button	 = fallback.children().detach();
 
 					this.browser.detach().empty().append( button );
 					fallback.append( this.browser ).show();
@@ -214,7 +212,7 @@
 
 			api.UploadControl.prototype.ready.call( this );
 
-			this.thumbnail    = this.container.find('.preview-thumbnail img');
+			this.thumbnail	  = this.container.find('.preview-thumbnail img');
 			this.thumbnailSrc = $.proxy( this.thumbnailSrc, this );
 			this.setting.bind( this.thumbnailSrc );
 
@@ -222,11 +220,11 @@
 
 			// Generate tab objects
 			this.tabs = {};
-			panels    = this.library.find('.library-content');
+			panels	  = this.library.find('.library-content');
 
 			this.library.children('ul').children('li').each( function() {
 				var link  = $(this),
-					id    = link.data('customizeTab'),
+					id	  = link.data('customizeTab'),
 					panel = panels.filter('[data-customize-tab="' + id + '"]');
 
 				control.tabs[ id ] = {
@@ -241,7 +239,7 @@
 				if ( event.type === 'keydown' &&  13 !== event.which ) // enter
 					return;
 
-				var id  = $(this).data('customizeTab'),
+				var id	= $(this).data('customizeTab'),
 					tab = control.tabs[ id ];
 
 				event.preventDefault();
@@ -319,8 +317,7 @@
 		sensitivity: 2000,
 
 		initialize: function( params, options ) {
-			var deferred = $.Deferred(),
-				self     = this;
+			var deferred = $.Deferred();
 
 			// This is the promise object.
 			deferred.promise( this );
@@ -483,13 +480,12 @@
 
 		/**
 		 * Requires params:
-		 *  - container  - a selector or jQuery element
-		 *  - previewUrl - the URL of preview frame
+		 *	- container  - a selector or jQuery element
+		 *	- previewUrl - the URL of preview frame
 		 */
 		initialize: function( params, options ) {
 			var self = this,
-				rscheme = /^https?/,
-				url;
+				rscheme = /^https?/;
 
 			$.extend( this, options || {} );
 
@@ -503,7 +499,7 @@
 			 * debounce the refresh requests:
 			 * 1. Stop the loading request (as it is instantly outdated).
 			 * 2. Trigger the new request once refresh hasn't been called for
-			 *    self.refreshBuffer milliseconds.
+			 *	  self.refreshBuffer milliseconds.
 			 */
 			this.refresh = (function( self ) {
 				var refresh  = self.refresh,
@@ -527,9 +523,9 @@
 				};
 			})( this );
 
-			this.container   = api.ensure( params.container );
+			this.container	 = api.ensure( params.container );
 			this.allowedUrls = params.allowedUrls;
-			this.signature   = params.signature;
+			this.signature	 = params.signature;
 
 			params.url = window.location.href;
 
@@ -605,11 +601,11 @@
 			this.abort();
 
 			this.loading = new api.PreviewFrame({
-				url:        this.url(),
+				url:		this.url(),
 				previewUrl: this.previewUrl(),
-				query:      this.query() || {},
-				container:  this.container,
-				signature:  this.signature
+				query:		this.query() || {},
+				container:	this.container,
+				signature:	this.signature
 			});
 
 			this.loading.done( function() {
@@ -662,7 +658,7 @@
 
 			messenger = new api.Messenger({
 				channel: 'login',
-				url:     api.settings.url.login
+				url:	 api.settings.url.login
 			});
 
 			iframe = $('<iframe src="' + api.settings.url.login + '" />').appendTo( this.container );
@@ -689,9 +685,9 @@
 	 * ===================================================================== */
 
 	api.controlConstructor = {
-		color:  api.ColorControl,
+		color:	api.ColorControl,
 		upload: api.UploadControl,
-		image:  api.ImageControl
+		image:	api.ImageControl
 	};
 
 	$( function() {
@@ -708,7 +704,7 @@
 
 		var body = $( document.body ),
 			overlay = body.children('.wp-full-overlay'),
-			query, previewer, parent;
+			previewer, parent, topFocus;
 
 		// Prevent the form from saving when enter is pressed.
 		$('#customize-controls').on( 'keydown', function( e ) {
@@ -721,11 +717,11 @@
 
 		// Initialize Previewer
 		previewer = new api.Previewer({
-			container:   '#customize-preview',
-			form:        '#customize-controls',
+			container:	 '#customize-preview',
+			form:		 '#customize-controls',
 			previewUrl:  api.settings.url.preview,
 			allowedUrls: api.settings.url.allowed,
-			signature:   'WP_CUSTOMIZER_SIGNATURE'
+			signature:	 'WP_CUSTOMIZER_SIGNATURE'
 		}, {
 
 			nonce: api.settings.nonce,
@@ -733,9 +729,9 @@
 			query: function() {
 				return {
 					wp_customize: 'on',
-					theme:        api.settings.theme.stylesheet,
+					theme:		  api.settings.theme.stylesheet,
 					customized:   JSON.stringify( api.get() ),
-					nonce:        this.nonce.preview
+					nonce:		  this.nonce.preview
 				};
 			},
 
@@ -743,7 +739,7 @@
 				var self  = this,
 					query = $.extend( this.query(), {
 						action: 'customize_save',
-						nonce:  this.nonce.save
+						nonce:	this.nonce.save
 					}),
 					request = $.post( api.settings.url.ajax, query );
 
@@ -778,9 +774,9 @@
 		});
 
 		// Refresh the nonces if the preview sends updated nonces over.
- 		previewer.bind( 'nonce', function( nonce ) {
- 			$.extend( this.nonce, nonce );
- 		});
+		previewer.bind( 'nonce', function( nonce ) {
+			$.extend( this.nonce, nonce );
+		});
 
 		$.each( api.settings.settings, function( id, data ) {
 			api.create( id, id, data.value, {
@@ -920,15 +916,15 @@
 		$.each({
 			'background_image': {
 				controls: [ 'background_repeat', 'background_position_x', 'background_attachment' ],
-				callback: function( to ) { return !! to }
+				callback: function( to ) { return !! to; }
 			},
 			'show_on_front': {
 				controls: [ 'page_on_front', 'page_for_posts' ],
-				callback: function( to ) { return 'page' === to }
+				callback: function( to ) { return 'page' === to; }
 			},
 			'header_textcolor': {
 				controls: [ 'header_textcolor' ],
-				callback: function( to ) { return 'blank' !== to }
+				callback: function( to ) { return 'blank' !== to; }
 			}
 		}, function( settingId, o ) {
 			api( settingId, function( setting ) {
@@ -973,7 +969,7 @@
 					control.settings.data.set( false );
 			});
 
-			control.library.on( 'click', 'a', function( event ) {
+			control.library.on( 'click', 'a', function( ) {
 				control.settings.data.set( $(this).data('customizeHeaderImageData') );
 			});
 
@@ -984,10 +980,10 @@
 
 				data = {
 					attachment_id: attachment.get('id'),
-					url:           attachment.get('url'),
+					url:		   attachment.get('url'),
 					thumbnail_url: attachment.get('url'),
-					height:        attachment.get('height'),
-					width:         attachment.get('width')
+					height:		   attachment.get('height'),
+					width:		   attachment.get('width')
 				};
 
 				attachment.element.data( 'customizeHeaderImageData', data );
@@ -998,7 +994,7 @@
 		api.trigger( 'ready' );
 
 		// Make sure left column gets focus
-		var topFocus = $('.back');
+		topFocus = $('.back');
 		topFocus.focus();
 		setTimeout(function () {
 			topFocus.focus();
