[Jifty-commit] r4787 - in jifty/trunk: lib/Jifty/Plugin/REST
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jan 4 15:20:01 EST 2008
Author: sartak
Date: Fri Jan 4 15:19:54 2008
New Revision: 4787
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
Log:
r49914 at onn: sartak | 2008-01-04 15:19:03 -0500
REST: We don't need the temporary hack any more for .js, since jifty_serialize_format already explicitly stringifies things
Modified: jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm Fri Jan 4 15:19:54 2008
@@ -140,11 +140,6 @@
elsif ($accept =~ /j(?:ava)?s|ecmascript/i) {
$apache->header_out('Content-Type' => 'application/javascript; charset=UTF-8');
$apache->send_http_header;
- # XXX: temporary hack to fix _() that aren't respected by json dumper
- for (values %{$_[0]}) {
- $_->{label} = "$_->{label}" if exists $_->{label} && defined ref $_->{label};
- $_->{hints} = "$_->{hints}" if exists $_->{hints} && defined ref $_->{hints};
- }
print 'var $_ = ', Jifty::JSON::objToJson( @_, { singlequote => 1 } );
}
elsif ($accept =~ qr{^(?:application/x-)?(?:perl|pl)$}i) {
More information about the Jifty-commit
mailing list