From d3cf0abfffd9dd4722ef10f3a531498a43df8c50 Mon Sep 17 00:00:00 2001 From: Masatsugu Oomiya Date: Tue, 30 May 2017 12:57:24 +0900 Subject: [PATCH] fixed Card.prototype.handleInitialPlaceholders --- dist/jquery.card.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dist/jquery.card.js b/dist/jquery.card.js index 78e28020..f5a37351 100644 --- a/dist/jquery.card.js +++ b/dist/jquery.card.js @@ -265,11 +265,18 @@ var card = for (name in ref) { selector = ref[name]; el = this["$" + name]; + if (el instanceof NodeList) { + el = el[0]; + } if (QJ.val(el)) { QJ.trigger(el, 'paste'); - results.push(setTimeout(function() { - return QJ.trigger(el, 'keyup'); - })); + results.push( + (function(el) { + setTimeout(function() { + return QJ.trigger(el, 'keyup'); + }) + })(el) + ); } else { results.push(void 0); }