NAME
MozRepl::Plugin::Repl::Util::HelpUrlFor - Return xulplanet reference url if exists.
VERSION
version 0.01
SYNOPSIS
use MozRepl;
use MozRepl::Util;
my $repl = MozRepl->new;
$repl->setup({ plugins => { plugins => [qw/Repl::Util::HelpUrlFor/] } });
print $repl->repl_help_url({ source => q|window.document.getElementsByTagName('window')[0]| });
print $repl->repl_help_url({ source => MozRepl::Util->javascript_value(q|@mozilla.org/network/protocol;1?name=view-source|) });
DESCRIPTION
Add repl_help_url() method to MozRepl
METHODS
setup($ctx, $args)
Now, MozLab 0.1.6 is include bug in repl.util.helpUrlFor() method. So setup() process is overriding this method.
execute
Return xulplanet reference url if exists.
- $ctx
-
Context object. See MozRepl.
- $args
-
Hash reference.
- source
-
JavaScript variable or value.
method_name()
Return constant value, "repl_help_url". Used by method name adding method to MozRepl object.
AUTHOR
Toru Yamaguchi, <zigorou@cpan.org>
BUGS
Please report any bugs or feature requests to bug-mozrepl-plugin-repl-util-helpurlfor@rt.cpan.org
, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
COPYRIGHT & LICENSE
Copyright 2007 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.