ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/widget.ext
(Generate patch)

Comparing deliantra/server/ext/widget.ext (file contents):
Revision 1.14 by root, Mon Jul 23 23:38:17 2007 UTC vs.
Revision 1.15 by root, Tue Jul 24 00:26:42 2007 UTC

19 my ($ns) = @_; 19 my ($ns) = @_;
20 20
21 Scalar::Util::weaken (my $weakns = $ns); 21 Scalar::Util::weaken (my $weakns = $ns);
22 22
23 $ns->{id} = "a"; 23 $ns->{id} = "a";
24 $ns->{json_coder}->filter_json_single_key_object (__widget_ref__ => sub { 24 $ns->{json_coder}->filter_json_single_key_object (__w_ => sub {
25 # cannot deserialise ATM 25 # cannot deserialise ATM
26 undef 26 undef
27 }); 27 });
28 }, 28 },
29); 29);
254 254
255 $self->msg_cb ($cb, w_g => [$member]); 255 $self->msg_cb ($cb, w_g => [$member]);
256} 256}
257 257
258sub TO_JSON { 258sub TO_JSON {
259 { __widget_ref__ => $_[0]{id} } 259 { __w_ => $_[0]{id} }
260} 260}
261 261
262our $AUTOLOAD; 262our $AUTOLOAD;
263 263
264sub AUTOLOAD { 264sub AUTOLOAD {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines