Index: /CKEditor/trunk/_source/core/htmlparser/fragment.js
===================================================================
--- /CKEditor/trunk/_source/core/htmlparser/fragment.js	(revision 4680)
+++ /CKEditor/trunk/_source/core/htmlparser/fragment.js	(revision 4681)
@@ -297,5 +297,5 @@
 			{
 				// Add all elements that have been found in the above loop.
-				for ( var i = 0 ; i < pendingAdd.length ; i++ )
+				for ( i = 0 ; i < pendingAdd.length ; i++ )
 				{
 					var node = pendingAdd[ i ];
Index: /CKEditor/trunk/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 4680)
+++ /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 4681)
@@ -456,10 +456,11 @@
 
 	// Focusable interface. Use it via dialog.addFocusable.
-	function Focusable( dialog, element, index ) {
+	function Focusable( dialog, element, index )
+	{
 		this.element = element;
 		this.focusIndex = index;
 		this.isFocusable = function()
 		{
-			return !( element.getAttribute( 'disabled' ) || !element.isVisible() )
+			return !element.getAttribute( 'disabled' ) && element.isVisible();
 		};
 		this.focus = function()
Index: /CKEditor/trunk/_source/plugins/list/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/list/plugin.js	(revision 4680)
+++ /CKEditor/trunk/_source/plugins/list/plugin.js	(revision 4681)
@@ -545,13 +545,16 @@
 	function indexOfFirstChildElement( element, tagNameList )
 	{
-		var children = element.children,
-			child,
+		var child,
+			children = element.children,
 			length = children.length;
-		for ( var i = 0; i < length; i++ )
+
+		for ( var i = 0 ; i < length ; i++ )
 		{
 			child = children[ i ];
-			if( child.name && ( child.name in tagNameList ) )
+			if ( child.name && ( child.name in tagNameList ) )
 				return i;
 		}
+
+		return length;
 	}
 
Index: /CKEditor/trunk/_source/plugins/selection/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 4680)
+++ /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 4681)
@@ -150,7 +150,6 @@
 								// whatever selection is, avoiding saving this
 								// 'wrong' snapshot.(#3001)
-								var evt = evt.data;
-								if ( evt.$.button == 2
-										&& evt.getTarget().hasAscendant( 'table' ) )
+								evt = evt.data;
+								if ( evt.$.button == 2 && evt.getTarget().hasAscendant( 'table' ) )
 									return;
 
Index: /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js	(revision 4680)
+++ /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js	(revision 4681)
@@ -149,5 +149,5 @@
 	{
 		return isNotWhitespace( node ) && isNotBookmark( node );
-	};
+	}
 
 	function isNbsp( node )
