From eefb5f0ffa48b00bdda4388269d879d79ca28a51 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 20 Jul 2011 01:56:01 -0700 Subject: [PATCH] less indentation --- 4chan_x.user.js | 9 +++++---- script.coffee | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 60a1b799a..4a2b2231e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2422,11 +2422,12 @@ }, reloaded: function(e) { var dialog, target; - target = e.target; - if (dialog = $('#qr')) { - $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value; - return $('input[name=recaptcha_challenge_field]', dialog).value = target.value; + if (!(dialog = $('#qr'))) { + return; } + target = e.target; + $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value; + return $('input[name=recaptcha_challenge_field]', dialog).value = target.value; } }; nodeInserted = function(e) { diff --git a/script.coffee b/script.coffee index bcf31bee7..896ed0258 100644 --- a/script.coffee +++ b/script.coffee @@ -1836,10 +1836,10 @@ Recaptcha = reload: -> window.location = 'javascript:Recaptcha.reload()' reloaded: (e) -> + return unless dialog = $ '#qr' {target} = e - if dialog = $ '#qr' - $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value - $('input[name=recaptcha_challenge_field]', dialog).value = target.value + $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value + $('input[name=recaptcha_challenge_field]', dialog).value = target.value nodeInserted = (e) -> {target} = e