From 68027dadd4b4e1c99f5a20647cceff62f6fcfec8 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 8 Apr 2014 22:52:56 -0700 Subject: [PATCH] Fix click handler var i was being bound in the closure of this click handler, then incremented by the for loop, such that its value was 1 by the time the handler was called, so we were grabbing the message body from, e.g. $("#input1") when we wanted $("#input0"). --- js/popup.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/js/popup.js b/js/popup.js index 5bffab92..8acff949 100644 --- a/js/popup.js +++ b/js/popup.js @@ -33,26 +33,27 @@ registerOnLoadFunction(function() { var messages = $('