/[Frey]/trunk/lib/Frey/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/JSON.pm

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

revision 454 by dpavlin, Wed Nov 19 03:36:24 2008 UTC revision 455 by dpavlin, Wed Nov 19 15:28:23 2008 UTC
# Line 17  has data => ( Line 17  has data => (
17          required => 1,          required => 1,
18  );  );
19    
20  sub 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)->encode($self->data);          JSON->new->allow_nonref(1)->encode($self->as_data);
24  }  }
25    
26  1;  1;

Legend:
Removed from v.454  
changed lines
  Added in v.455

  ViewVC Help
Powered by ViewVC 1.1.26