… | |
… | |
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 | |
258 | sub TO_JSON { |
258 | sub TO_JSON { |
259 | { __widget_ref__ => $_[0]{id} } |
259 | { __w_ => $_[0]{id} } |
260 | } |
260 | } |
261 | |
261 | |
262 | our $AUTOLOAD; |
262 | our $AUTOLOAD; |
263 | |
263 | |
264 | sub AUTOLOAD { |
264 | sub AUTOLOAD { |