Mistake in mkEvent which makes all events only work once

pull/1/head
Caleb James DeLisle 7 years ago
parent a8eecee590
commit 1fd7a6e2b3

@ -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); });

Loading…
Cancel
Save