NAME
JavaScript::Framework::jQuery::Plugin::funcliteral - Add literal JavaScript code to document ready
SYNOPSIS
# add literal text to output of $(document).ready(function (){...});
my $plugin = JavaScript::Framework::jQuery::Plugin::funcliteral->new(
funccalls => [
'$("div ul").foobar();',
'$("div ul").barfoo();'
]
);
print $plugin->cons_statement;
# $("div ul").foobar();
# $("div ul").barfoo();
DESCRIPTION
Support for addition of literal function call or other JavaScript code to the body of the $(document).ready(...) call text.
METHODS
cons_statement( )
Return the text of the JavaScript statements passed in the constructor, joined with newlines.
AUTHOR
David P.C. Wollmann <converter42 at gmail.com>
COPYRIGHT & LICENSE
Copyright 2009 David P.C. Wollmann, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.