Permalink
Browse files

Fixed a bug that dosen't unbind image tag's event hander.

  • Loading branch information...
1 parent 677c2f2 commit 6f16e202d6db89a39a07af7a991fa0fc32bfc552 @monochromegane committed Dec 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 popup/popup.js
View
@@ -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);

0 comments on commit 6f16e20

Please sign in to comment.