Cleanup
This commit is contained in:
parent
3b7a377161
commit
855ad7a549
@ -43,10 +43,9 @@ function combine(dict, params) {
|
|||||||
result = add(values, result);
|
result = add(values, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
var max = 0.0;
|
var max = _.max(_.values(result), function(value) {
|
||||||
for (var key in result) {
|
return Math.abs(value);
|
||||||
max = Math.max(Math.abs(result[key]), max);
|
});
|
||||||
}
|
|
||||||
|
|
||||||
if (max > 0.0) {
|
if (max > 0.0) {
|
||||||
for (var key in result) {
|
for (var key in result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user