From 74540e4b71b6b7e71bc0860b174318bfeb7e4d78 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 10 Dec 2014 17:15:43 -0800 Subject: [PATCH] Also check descendants of inserted nodes. Possibly fixes the copy+paste captcha? --- src/Posting/QR.captcha.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Posting/QR.captcha.coffee b/src/Posting/QR.captcha.coffee index 8a62d8b09..bffded378 100644 --- a/src/Posting/QR.captcha.coffee +++ b/src/Posting/QR.captcha.coffee @@ -85,8 +85,8 @@ QR.captcha = afterSetup: (mutations) -> for mutation in mutations for node in mutation.addedNodes - @setupIFrame node if node.nodeName is 'IFRAME' - @setupTextArea node if node.nodeName is 'TEXTAREA' + @setupIFrame iframe if iframe = $.x './descendant-or-self::iframe', node + @setupTextArea textarea if textarea = $.x './descendant-or-self::textarea', node return setupIFrame: (iframe) ->