/[Frey]/trunk/lib/Frey/View/JSON.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/View/JSON.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 961 by dpavlin, Mon Dec 1 12:45:25 2008 UTC revision 962 by dpavlin, Wed Jan 7 19:42:36 2009 UTC
# Line 20  has data => ( Line 20  has data => (
20  sub as_markup {  sub as_markup {
21          my ($self) = @_;          my ($self) = @_;
22          $self->content_type('application/javascript');          $self->content_type('application/javascript');
23          JSON->new->allow_nonref(1)->allow_blessed(1)->encode($self->as_data);          JSON->new->allow_nonref(1)->allow_blessed(1)->encode($self->data);
24  }  }
25    
26  1;  1;

Legend:
Removed from v.961  
changed lines
  Added in v.962

  ViewVC Help
Powered by ViewVC 1.1.26