Changeset 947
- Timestamp:
- 01/27/08 02:17:05 (5 years ago)
- Files:
-
- 1 modified
-
trunk/XinhaCore.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r946 r947 215 215 */ 216 216 function Xinha(textarea, config) 217 { 217 { 218 218 if ( !Xinha.isSupportedBrowser ) return; 219 219 … … 5165 5165 var newObj = {}; 5166 5166 5167 // check for array and RegExpobjects5168 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\(/ ) ) 5169 5169 { 5170 5170 newObj = obj.constructor(); 5171 5171 } 5172 5172 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\(/ )) 5175 5175 { 5176 5176 newObj = obj; // just copy reference to it
