Revision 2b7f7e75
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/Base.pm | ||
---|---|---|
13 | 13 |
|
14 | 14 |
use Rose::Object::MakeMethods::Generic |
15 | 15 |
( |
16 |
scalar => [ qw(action_name) ], |
|
16 |
scalar => [ qw(action_name) ], |
|
17 |
'scalar --get_set_init' => [ qw(js) ], |
|
17 | 18 |
); |
18 | 19 |
|
19 | 20 |
# |
... | ... | |
177 | 178 |
return $class; |
178 | 179 |
} |
179 | 180 |
|
181 |
sub init_js { |
|
182 |
SL::ClientJS->new(controller => $_[0]) |
|
183 |
} |
|
184 |
|
|
180 | 185 |
# |
181 | 186 |
# Before/after run hooks |
182 | 187 |
# |
... | ... | |
615 | 620 |
Returns the global presenter object by calling |
616 | 621 |
L<SL::Presenter/get>. |
617 | 622 |
|
623 |
=item C<js> |
|
624 |
|
|
625 |
Returns an L<SL::ClientJS> instance for this controller. |
|
626 |
|
|
618 | 627 |
=back |
619 | 628 |
|
620 | 629 |
=head2 PRIVATE FUNCTIONS |
Auch abrufbar als: Unified diff
Controller::Base: js accessor bereitstellen
Der wird eh überall benutzt, also kann er auch gleich dahin.