From 456123fa70056b06dc173ec06b4005f58c222c01 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 28 Jun 2015 18:58:41 -0700 Subject: [PATCH] Code cleanup. --- src/Posting/Captcha.v1.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Posting/Captcha.v1.coffee b/src/Posting/Captcha.v1.coffee index ab313acd4..3cc0ba25c 100644 --- a/src/Posting/Captcha.v1.coffee +++ b/src/Posting/Captcha.v1.coffee @@ -91,7 +91,7 @@ Captcha.v1 = onPostChange: -> setup: (focus, force) -> - return unless @isEnabled and (@needed() or force) + return unless @isEnabled and (force or @needed()) @create() @nodes.input.focus() if focus @@ -123,7 +123,7 @@ Captcha.v1 = destroy: -> return unless @script - $.globalEval 'Recaptcha.destroy()' + $.globalEval 'window.Recaptcha.destroy();' @beforeSetup() if @nodes sync: (captchas=[]) ->