Changeset 24


Ignore:
Timestamp:
03/05/05 04:49:08 (15 years ago)
Author:
gogo
Message:

Fix ticket #29
This was caused because of the extra methods I've added to the array
prototype. I'm thinking that adding those was a bad idea and that they
should be removed from the prototype and added as utility functions
somewhere else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/TableOperations/table-operations.js

    r20 r24  
    8787                TableOperations.processStyle(params, table); 
    8888                for (var i in params) { 
     89      if(typeof params[i] == 'function') continue; 
    8990                        var val = params[i]; 
    9091                        switch (i) { 
     
    284285                TableOperations.processStyle(params, element); 
    285286                for (var i in params) { 
     287      if(typeof params[i] == 'function') continue; 
    286288                        var val = params[i]; 
    287289                        switch (i) { 
     
    504506                for (var i = rows.length; --i >= 0;) { 
    505507      /* 
    506       var tr = rows;    
    507       var otd = tr.insertCell(index + (/after/.test(button_id) ? 1 : 0));    
    508       otd.innerHTML = mozbr;    
     508      var tr = rows; 
     509      var otd = tr.insertCell(index + (/after/.test(button_id) ? 1 : 0)); 
     510      otd.innerHTML = mozbr; 
    509511      */ 
    510512                        var tr = rows[i]; 
     
    513515                        otd.innerHTML = mozbr; 
    514516                        tr.insertBefore(otd, ref); 
    515        
     517 
    516518                } 
    517519                editor.focusEditor(); 
     
    726728        var style = element.style; 
    727729        for (var i in params) { 
     730    if(typeof params[i] == 'function') continue; 
    728731                var val = params[i]; 
    729732                switch (i) { 
     
    10781081        (currentBorderStyle.match(/([^\s]*)\s/)) && (currentBorderStyle = RegExp.$1); 
    10791082        for (var i in options) { 
     1083    if(typeof options[i] == 'function') continue; 
    10801084                var val = options[i]; 
    10811085                option = doc.createElement("option"); 
Note: See TracChangeset for help on using the changeset viewer.