Run the i through the parseInt to avoid IE 7 errors. fixes #4268

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-22 22:52:29 +00:00
parent 4678e74496
commit 4f26da7350
1 changed files with 5 additions and 3 deletions

View File

@ -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();