Changeset 949


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

another approach to #1040

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r947 r949  
    51725172 
    51735173  // 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\(/ )) 
     5174  if ( obj.constructor.toString().match( /\s*function Function\(/ ) ) 
    51755175  { 
    51765176    newObj = obj; // just copy reference to it 
     5177  } 
     5178  else if (  obj.constructor.toString().match( /\s*function RegExp\(/ ) ) 
     5179  { 
     5180    newObj = eval( obj.toString() ); //see no way without eval 
    51775181  } 
    51785182  else 
Note: See TracChangeset for help on using the changeset viewer.