From e623c78708ef31b4beff5852799e05ea6058834e Mon Sep 17 00:00:00 2001 From: rob1n Date: Tue, 22 May 2007 22:52:29 +0000 Subject: [PATCH] Run the i through the parseInt to avoid IE 7 errors. fixes #4268 git-svn-id: http://svn.automattic.com/wordpress/trunk@5520 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/widgets.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index a8d469e3bc..b6b330cff2 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -68,9 +68,11 @@ function wp_widgets_admin_head() { $A(Draggables.drags).map(function(o) {o.startDrag(null); o.finishDrag(null);}); //for ( var n in Draggables.drags ) { for ( n=0; n<=Draggables.drags.length; n++ ) { - if ( Draggables.drags[n].element.id == 'lastmodule' ) { - Draggables.drags[n].destroy(); - break; + if ( parseInt( n ) ) { + if ( Draggables.drags[n].element.id == 'lastmodule' ) { + Draggables.drags[n].destroy(); + break; + } } } resetPaletteHeight();