From 1fd7a6e2b32fcc61edadb9e6d893f42d22ab2bb9 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Mon, 25 Sep 2017 18:03:31 +0200 Subject: [PATCH] Mistake in mkEvent which makes all events only work once --- www/common/common-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-util.js b/www/common/common-util.js index 4015fbfe4..c6cbe4055 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -16,7 +16,7 @@ define([], function () { handlers.splice(handlers.indexOf(cb), 1); }, fire: function () { - if (fired) { return; } + if (once && fired) { return; } fired = true; var args = Array.prototype.slice.call(arguments); handlers.forEach(function (h) { h.apply(null, args); });