Changeset 421


Ignore:
Timestamp:
11/07/05 08:36:41 (14 years ago)
Author:
gocher
Message:

Ticket #550
changes for firefox 1.5 RC1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r419 r421  
    43334333 
    43344334  // check for array objects 
    4335   if (obj.constructor.toString().indexOf("function Array(") == 1) { 
     4335  if (obj.constructor.toString().match( /\s*function Array\(/ )) { 
    43364336    newObj = obj.constructor(); 
    43374337  } 
    43384338 
    43394339  // check for function objects (as usual, IE is fucked up) 
    4340   if (obj.constructor.toString().indexOf("function Function(") == 1) { 
     4340  if (obj.constructor.toString().match( /\s*function Function\(/ )) { 
    43414341    newObj = obj; // just copy reference to it 
    43424342  } else for (var n in obj) { 
Note: See TracChangeset for help on using the changeset viewer.