manual merge, still wip

This commit is contained in:
Caleb James DeLisle
2017-09-25 17:35:25 +02:00
73 changed files with 2901 additions and 3709 deletions

View File

@@ -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); });
@@ -203,5 +203,9 @@ define([], function () {
};
};
Util.slice = function (A) {
return Array.prototype.slice.call(A);
};
return Util;
});