Skip to content

Commit

Permalink
New bypass syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Dec 12, 2012
1 parent 13d5295 commit 645e219
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions recaptcha.js
@@ -1,5 +1,7 @@
##register init: string, string, string -> void
##args(id, pubkey, theme)
/**
* @register {string, string, string -> void}
*/
function init(id, pubkey, theme)
{
Recaptcha.create(pubkey,
id,
Expand All @@ -10,26 +12,34 @@
);
}

##register get_challenge: -> string
##args()
/**
* @register{-> string}
*/
function get_challenge()
{
return (Recaptcha.get_challenge()||"")
}

##register get_response: -> string
##args()
/**
* @register {-> string}
*/
function get_response()
{
return (Recaptcha.get_response()||"")
}

##register destroy: -> void
##args()
/**
* @register {-> void}
*/
function destroy()
{
Recaptcha.destroy();
}

##register reload: -> void
##args()
/**
* @register { -> void}
*/
function reload()
{
Recaptcha.reload();
}

0 comments on commit 645e219

Please sign in to comment.