Run the i through the parseInt to avoid IE 7 errors. fixes #4268
git-svn-id: https://develop.svn.wordpress.org/trunk@5520 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a24222a0f0
commit
759b2afb2a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user