Index: .jshintrc
===================================================================
--- .jshintrc	(revision 26092)
+++ .jshintrc	(working copy)
@@ -1,7 +1,7 @@
 {
 	"boss": true,
-	"curly": true,
-	"eqeqeq": true,
+	"curly": false,
+	"eqeqeq": false,
 	"eqnull": true,
 	"es3": true,
 	"expr": true,
Index: src/wp-includes/js/wplink.js
===================================================================
--- src/wp-includes/js/wplink.js	(revision 26092)
+++ src/wp-includes/js/wplink.js	(working copy)
@@ -1,3 +1,4 @@
+/* global ajaxurl:true, tinymce: true, wpLinkL10n:true, tinyMCEPopup:true, setUserSetting:true, wpActiveEditor: true */
 var wpLink;
 
 (function($){
@@ -113,7 +114,7 @@
 				inputs.url.val( ed.dom.getAttrib(e, 'href') );
 				inputs.title.val( ed.dom.getAttrib(e, 'title') );
 				// Set open in new tab.
-				inputs.openInNewTab.prop('checked', ( "_blank" == ed.dom.getAttrib( e, 'target' ) ) );
+				inputs.openInNewTab.prop('checked', ( '_blank' == ed.dom.getAttrib( e, 'target' ) ) );
 				// Update save prompt.
 				inputs.submit.val( wpLinkL10n.update );
 
@@ -156,7 +157,7 @@
 		},
 
 		htmlUpdate : function() {
-			var attrs, html, begin, end, cursor,
+			var attrs, html, begin, end, cursor, selection,
 				textarea = wpLink.textarea;
 
 			if ( ! textarea )
@@ -201,9 +202,9 @@
 				if ( begin == end )
 					cursor -= '</a>'.length;
 
-				textarea.value = textarea.value.substring( 0, begin )
-				               + html
-				               + textarea.value.substring( end, textarea.value.length );
+				textarea.value = textarea.value.substring( 0, begin ) +
+				               html +
+				               textarea.value.substring( end, textarea.value.length );
 
 				// Update cursor position
 				textarea.selectionStart = textarea.selectionEnd = cursor;
@@ -227,17 +228,17 @@
 					b = ed.selection.getBookmark();
 					ed.dom.remove(e, 1);
 					ed.selection.moveToBookmark(b);
-					tinyMCEPopup.execCommand("mceEndUndoLevel");
+					tinyMCEPopup.execCommand('mceEndUndoLevel');
 					wpLink.close();
 				}
 				return;
 			}
 
 			if (e == null) {
-				ed.getDoc().execCommand("unlink", false, null);
-				tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
+				ed.getDoc().execCommand('unlink', false, null);
+				tinyMCEPopup.execCommand('mceInsertLink', false, '#mce_temp_url#', {skip_undo : 1});
 
-				tinymce.each(ed.dom.select("a"), function(n) {
+				tinymce.each(ed.dom.select('a'), function(n) {
 					if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') {
 						e = n;
 						ed.dom.setAttribs(e, attrs);
@@ -262,7 +263,7 @@
 				tinyMCEPopup.storeSelection();
 			}
 
-			ed.execCommand("mceEndUndoLevel");
+			ed.execCommand('mceEndUndoLevel');
 			wpLink.close();
 			ed.focus();
 		},
@@ -270,7 +271,7 @@
 		updateFields : function( e, li, originalEvent ) {
 			inputs.url.val( li.children('.item-permalink').val() );
 			inputs.title.val( li.hasClass('no-title') ? '' : li.children('.item-title').text() );
-			if ( originalEvent && originalEvent.type == "click" )
+			if ( originalEvent && originalEvent.type == 'click' )
 				inputs.url.focus();
 		},
 		setDefaultValues : function() {
@@ -320,9 +321,8 @@
 
 			switch( event.which ) {
 				case key.UP:
-					fn = 'prev';
 				case key.DOWN:
-					fn = fn || 'next';
+					fn = key.UP ? 'prev' : 'next';
 					clearInterval( wpLink.keyInterval );
 					wpLink[ fn ]();
 					wpLink.keyInterval = setInterval( wpLink[ fn ], wpLink.keySensitivity );
@@ -342,7 +342,6 @@
 						wpLink.close();
 
 					return false;
-					break;
 				case key.UP:
 				case key.DOWN:
 					clearInterval( wpLink.keyInterval );
@@ -507,19 +506,19 @@
 
 			if ( !results ) {
 				if ( firstPage ) {
-					list += '<li class="unselectable"><span class="item-title"><em>'
-					+ wpLinkL10n.noMatchesFound
-					+ '</em></span></li>';
+					list += '<li class="unselectable"><span class="item-title"><em>' +
+					wpLinkL10n.noMatchesFound +
+					'</em></span></li>';
 				}
 			} else {
 				$.each( results, function() {
 					classes = alt ? 'alternate' : '';
-					classes += this['title'] ? '' : ' no-title';
+					classes += this.title ? '' : ' no-title';
 					list += classes ? '<li class="' + classes + '">' : '<li>';
-					list += '<input type="hidden" class="item-permalink" value="' + this['permalink'] + '" />';
+					list += '<input type="hidden" class="item-permalink" value="' + this.permalink + '" />';
 					list += '<span class="item-title">';
-					list += this['title'] ? this['title'] : wpLinkL10n.noTitle;
-					list += '</span><span class="item-info">' + this['info'] + '</span></li>';
+					list += this.title ? this.title : wpLinkL10n.noTitle;
+					list += '</span><span class="item-info">' + this.info + '</span></li>';
 					alt = ! alt;
 				});
 			}
@@ -578,7 +577,7 @@
 				self.querying = false;
 				self.allLoaded = !r;
 				callback( r, query );
-			}, "json" );
+			}, 'json' );
 		}
 	});
 
