javascripts/right-json.js in right-rails-0.4.3 vs javascripts/right-json.js in right-rails-0.4.4

- old
+ new

@@ -1,6 +1,6 @@ /** * The JSON encode/decode feature * * Copyright (C) 2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il> */ -eval((function(s,d){for(var i=d.length-1;i>-1;i--)if(d[i])s=s.replace(new RegExp(i,'g'),d[i]);return s})("(3(S){22 b={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\"':'\\\\\"','\\\\\': '\\\\\\\\\'},q=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\33\\46-\\41\\42\\47\\45\\35-\\43\\32-\\39\\37-\\36\\34\\38-\\40]/g;3 a(s){11 s.19(q,3(c){11 b[c]||'\\\\u'+('48'+c.23(0).to24(16)).44(-4)})};S.14=3(){11 '\"'+a(13)+'\"'}})(24.12);(3(D){22 z=3(n){11(n<10?'0':'')+n};D.14=3(){11 13.52UTCFullYear()+'-'+z(13.52UTCMonth()+1)+'-'+z(13.52UTC53())+'T'+z(13.52UTCHours())+':'+z(13.52UTCMinutes())+':'+z(13.52UTCSeconds())+'Z'}})(53.12);Number.12.14=3(){11 24(13+0)};Boolean.12.14=3(){11 24(13)};Array.12.14=3(){11 '['+13.map(15.18).join(',')+']'};if(21['50'])21['50'].12.14=3(){11 21['15'].18(13.toObject())};22 15={18:3(v){22 r;if(v===26)r='26';27 if(v.14)r=v.14();27 if(is50(v)){r=[];for(22 k in v)r.push(k.14()+\":\"+15.18(v[k]));r='{'+r+'}'}27 30 \"15 can't 18: \"+v;11 r},cx:/[\\u48\\33\\46-\\41\\42\\47\\45\\35-\\43\\32-\\39\\37-\\36\\34\\38-\\40]/g,25:3(s){if(is24(s)&&s){s=s.19(15.cx,3(b){11 '\\\\u'+('48'+b.23(0).to24(16)).44(-4)});if(/^[\\],:{}\\s]*$/.test(s.19(/\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').19(/\"[^\"\\\\\\n\\r]*\"|true|false|26|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,']').19(/(?:^|:|,)(?:\\s*\\[)+/g,'')))11 eval('('+s+')')}30 \"15 parse error: \"+s}};if(21['31'])(3(C){22 a=C.51,o=C.52;$ext(C,{51:3(v){11 a.49(13,15.18(v))},52:3(){11 15.25(o.49(13))}})})(31.12);Xhr.12.sanitized15=3(){try{11 15.25(13.text)}catch(e){if(13.secure15)30 e;27 11 26}};",",,,function,,,,,,,,return,prototype,this,toJSON,JSON,,,encode,replace,,window,var,charCodeAt,String,decode,null,else,,toString,throw,Cookie,u2028,u00ad,ufeff,u200c,u206f,u2060,ufff0,u202f,uffff,u0604,u070f,u200f,slice,u17b5,u0600,u17b4,0000,call,Hash,set,get,Date".split(","))); +eval((function(s,d){for(var i=d.length-1;i>-1;i--)if(d[i])s=s.replace(new RegExp(i,'g'),d[i]);return s})("14 12=(11(d){14 a=/[\\u52\\36\\49-\\41\\45\\50\\48\\34-\\47\\46-\\42\\40-\\38\\37\\35-\\44]/g,f={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\"':'\\\\\"','\\\\\': '\\\\\\\\\'},q=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\36\\49-\\41\\45\\50\\48\\34-\\47\\46-\\42\\40-\\38\\37\\35-\\44]/g;11 e(s){3 s.13(q,11(c){3 f[c]||'\\\\u'+('52'+c.22(0).30(16)).43(-4)})};14 z=11(n){3(n<10?'0':'')+n};14 g=d.15||11(v){if(v===25)3 '25';19 if(v.to12)3 v.to12();19 switch(typeof(v)){26 'boolean':3 33(v);26 'number':3 33(v+0);26 'string':3 '\"'+e(v)+'\"';26 'object':if(v 21 Array)3 '['+v.map(12.15).53(',')+']';19 if(v 21 56)3 v.55UTCFullYear()+'-'+z(v.55UTCMonth()+1)+'-'+z(v.55UTC56())+'T'+z(v.55UTCHours())+':'+z(v.55UTCMinutes())+':'+z(v.55UTCSeconds())+'.'+z(v..55Milliseconds())+'Z';19{14 r=[];for(14 k in v)r.push(12.18(k)+\":\"+12.18(v[k]));3 '{'+r.53(',')+'}'}}};14 p=d.29||11(s){if(is33(s)&&s){s=s.13(a,11(b){3 '\\\\u'+('52'+b.22(0).30(16)).43(-4)});if(/^[\\],:{}\\s]*$/.test(s.13(/\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').13(/\"[^\"\\\\\\n\\r]*\"|true|false|25|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,']').13(/(?:^|:|,)(?:\\s*\\[)+/g,'')))3 eval('('+s+')')}39 \"12 29 error: \"+s};3{15:g,29:p,18:g,23:p}})(self.12);if(window['31'])(11(C){14 a=C.54,o=C.55;$ext(C,{54:11(v){3 a.51(27,12.18(v))},55:11(){3 12.23(o.51(27))}})})(31.24);Xhr.24.sanitized12=11(){try{3 12.23(27.text)}catch(e){if(27.secure12)39 e;19 3 25}};",",,,return,,,,,,,,function,JSON,replace,var,stringify,,,encode,else,,instanceof,charCodeAt,decode,prototype,null,case,this,,parse,toString,Cookie,toJSON,String,u200c,ufff0,u00ad,ufeff,u206f,throw,u2060,u0604,u202f,slice,uffff,u070f,u2028,u200f,u17b5,u0600,u17b4,call,0000,join,set,get,Date".split(","))); \ No newline at end of file