Changeset 9d24a9


Ignore:
Timestamp:
May 19, 2008, 1:52:26 AM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
507db2
Parents:
f8e898
Message:

strict javascript requires variable declaration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_msgIdentityClone.js

    rf8e898 r9d24a9  
    7171        }
    7272        MenuItems = vI_msgIdentityClone.elements.Obj_MsgIdentityPopup.childNodes
    73         for (index = 0; index < MenuItems.length; index++) {
     73        for (var index = 0; index < MenuItems.length; index++) {
    7474            var newMenuItem = MenuItems[index].cloneNode(true);
    7575            newMenuItem.setAttribute("class", "identity_clone-popup-item person-icon")
     
    100100        vI_notificationBar.dump("## vI_msgIdentityClone: setMenuToIdentity key " + identitykey + "\n");
    101101        MenuItems = vI_msgIdentityClone.elements.Obj_MsgIdentityPopup_clone.childNodes
    102         for (index = 0; index < MenuItems.length; index++) {
     102        for (var index = 0; index < MenuItems.length; index++) {
    103103            if (MenuItems[index].getAttribute("value") ==
    104104                identitykey) {
     
    127127        // if a base-id exists, search the account related to this id
    128128        MenuItems = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.firstChild.childNodes
    129         for (j = 0; j < MenuItems.length; j++) {
     129        for (var j = 0; j < MenuItems.length; j++) {
    130130            if (MenuItems[j].localName == "menuseparator") {
    131131                separator = true; break;
     
    146146    addIdentitiesToCloneMenu: function(all_addresses) {
    147147        var separator = null;
    148         for (index = 0; index < all_addresses.number; index++) {
     148        for (var index = 0; index < all_addresses.number; index++) {
    149149            if (vI_msgIdentityClone.__isNewAddress(
    150150                all_addresses.fullNames[index], all_addresses.emails[index], all_addresses.smtp_keys[index])) {
     
    161161        // copy selected Menu-Value from clone to orig.
    162162        MenuItems = vI_msgIdentityClone.elements.Obj_MsgIdentity.firstChild.childNodes
    163         for (index = 0; index < MenuItems.length; index++) {
     163        for (var index = 0; index < MenuItems.length; index++) {
    164164            if ( MenuItems[index].getAttribute("value") == id_key ) {
    165165                vI_msgIdentityClone.elements.Obj_MsgIdentity.selectedItem = MenuItems[index];
Note: See TracChangeset for help on using the changeset viewer.