com web/php: fix "bork bork bork" firing multiple times: js/common.js
| From: | Peter Cowburn | Date: | Sun, 07 Sep 2014 12:30:22 +0000 |
| Subject: | com web/php: fix "bork bork bork" firing multiple times: js/common.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19901@lists.php.net to get a copy of this message | ||
Commit: a1e82fb9b90de941199326928782599c8f321671
Author: Peter Cowburn <salathe@php.net> Sun, 7 Sep 2014 13:30:22 +0100
Parents: 4f389c0b02f944c953b5f4099d86a42e763882f2
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a1e82fb9b90de941199326928782599c8f321671
Log:
fix "bork bork bork" firing multiple times
Changed paths:
M js/common.js
Diff:
diff --git a/js/common.js b/js/common.js
index 31216f5..5e038d4 100755
--- a/js/common.js
+++ b/js/common.js
@@ -112,6 +112,7 @@ Mousetrap.bind("b o r k", function() {
}).each(function(_, el) {
el.textContent = bork(el.textContent);
});
+ Mousetrap.unbind("b o r k");
});
var FIXED_HEADER_HEIGHT = 50;