Changeset 947 for trunk


Ignore:
Timestamp:
01/27/08 02:17:05 (11 years ago)
Author:
ray
Message:

fix for the last fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r946 r947  
    215215 */ 
    216216function Xinha(textarea, config) 
    217 { 
     217{  
    218218  if ( !Xinha.isSupportedBrowser ) return; 
    219219   
     
    51655165  var newObj = {}; 
    51665166 
    5167   // check for array and RegExp objects 
    5168   if ( obj.constructor.toString().match( /\s*function Array\(/ ) || obj.constructor.toString().match( /\s*function RegExp\(/ )) 
     5167  // check for array objects 
     5168  if ( obj.constructor.toString().match( /\s*function Array\(/ ) ) 
    51695169  { 
    51705170    newObj = obj.constructor(); 
    51715171  } 
    51725172 
    5173   // check for function objects (as usual, IE is fucked up) 
    5174   if ( obj.constructor.toString().match( /\s*function Function\(/ ) ) 
     5173  // check for function and RegExp objects (as usual, IE is fucked up) 
     5174  if ( obj.constructor.toString().match( /\s*function Function\(/ ) || obj.constructor.toString().match( /\s*function RegExp\(/ )) 
    51755175  { 
    51765176    newObj = obj; // just copy reference to it 
Note: See TracChangeset for help on using the changeset viewer.