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.16 by root, Tue Jul 24 19:33:57 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);
181 push @{$proxy->{ev}{$ev}}, $args{$ev}; 181 push @{$proxy->{ev}{$ev}}, $args{$ev};
182 $args{$ev} = 0; 182 $args{$ev} = 0;
183 } 183 }
184 184
185 $self->msg (ws_c => 185 $self->msg (ws_c =>
186 $proxy->{id}, 186 $self->{id},
187 $id, 187 $id,
188 $class, 188 $class,
189 \%args, 189 \%args,
190 ); 190 );
191 191
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