From 6f16e202d6db89a39a07af7a991fa0fc32bfc552 Mon Sep 17 00:00:00 2001 From: monochromegane Date: Mon, 23 Dec 2013 22:44:32 +0900 Subject: [PATCH] Fixed a bug that dosen't unbind image tag's event hander. --- popup/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup/popup.js b/popup/popup.js index 4a7e38d..b2fbd5e 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -12,7 +12,7 @@ Page.prototype.load = function(){ var image = $(this); $.getJSON("http://www.lgtm.in/g?" + Math.random(), function (data) { image.attr("src", data.imageUrl); - image.click(function(){ + image.unbind().click(function(){ chrome.tabs.sendMessage(tabId, {image: "![LGTM](" + image.attr("src") + ")"}, function(response){}); $(".message").show(500);