Changeset 2623 for trunk/phpgwapi/js/tools/xobject.js
- Timestamp:
- 04/23/10 10:41:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/js/tools/xobject.js
r2561 r2623 18 18 } 19 19 }; 20 21 String.prototype.trim = function( ) 22 { 23 return this.replace( /^ +| +$/g, '' ); 24 } 20 25 21 26 function f( n ) … … 61 66 { 62 67 escapable.lastIndex = 0; 63 return escapable.test( string) ?68 return escapable.test( string ) ? 64 69 '"' + string.replace(escapable, function (a) 65 66 var c = meta[a];67 70 { 71 var c = meta[ a ]; 72 return typeof c === 'string' ? c : 68 73 '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); 69 }) + '"' : 70 '"' + string + '"'; 74 } ) + '"' : '"' + string + '"'; 71 75 } 72 76
Note: See TracChangeset
for help on using the changeset viewer.