Der wird eh überall benutzt, also kann er auch gleich dahin.
use Rose::Object::MakeMethods::Generic
(
- scalar => [ qw(action_name) ],
+ scalar => [ qw(action_name) ],
+ 'scalar --get_set_init' => [ qw(js) ],
);
#
return $class;
}
+sub init_js {
+ SL::ClientJS->new(controller => $_[0])
+}
+
#
# Before/after run hooks
#
Returns the global presenter object by calling
L<SL::Presenter/get>.
+=item C<js>
+
+Returns an L<SL::ClientJS> instance for this controller.
+
=back
=head2 PRIVATE FUNCTIONS