Make WordPress Core


Ignore:
Timestamp:
05/22/2007 10:52:29 PM (19 years ago)
Author:
rob1n
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/widgets.php

    r5496 r5520  
    6969                //for ( var n in Draggables.drags ) {
    7070                for ( n=0; n<=Draggables.drags.length; n++ ) {
    71                         if ( Draggables.drags[n].element.id == 'lastmodule' ) {
    72                                 Draggables.drags[n].destroy();
    73                                 break;
     71                        if ( parseInt( n ) ) {
     72                                if ( Draggables.drags[n].element.id == 'lastmodule' ) {
     73                                        Draggables.drags[n].destroy();
     74                                        break;
     75                                }
    7476                        }
    7577                }
Note: See TracChangeset for help on using the changeset viewer.