mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 15:25:46 +01:00
More lazy instantiation. Look out for breakage.
This commit is contained in:
@@ -147,6 +147,9 @@ defineModule.modules = [];
|
||||
defineModule.times = { all: 0 };
|
||||
defineModule.time = function time(major, minor, func, self) {
|
||||
let time = Date.now();
|
||||
if (typeof func !== "function")
|
||||
func = self[func];
|
||||
|
||||
try {
|
||||
var res = func.apply(self, Array.slice(arguments, 4));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user