Let's speed that up a bit.
This commit is contained in:
parent
fc02990565
commit
4f8206f343
@ -7875,20 +7875,18 @@
|
||||
return;
|
||||
}
|
||||
initFeatures = function(features) {
|
||||
var module, name, _results;
|
||||
_results = [];
|
||||
var module, name;
|
||||
for (name in features) {
|
||||
module = features[name];
|
||||
try {
|
||||
_results.push(module.init());
|
||||
module.init();
|
||||
} catch (err) {
|
||||
_results.push(Main.handleErrors({
|
||||
Main.handleErrors({
|
||||
message: "\"" + name + "\" initialization crashed.",
|
||||
error: err
|
||||
}));
|
||||
});
|
||||
}
|
||||
}
|
||||
return _results;
|
||||
};
|
||||
initFeatures({
|
||||
'Polyfill': Polyfill,
|
||||
|
||||
@ -335,6 +335,7 @@ Main =
|
||||
error: err
|
||||
# finally
|
||||
# c.timeEnd "#{name} initialization"
|
||||
return
|
||||
|
||||
# c.time 'All initializations'
|
||||
initFeatures
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user