params.get('key_not_in_params') returns a null, not undefined, so this wasn't working as we expected it to.
fixed and added a few more comments.
intended behavior: if you load the scorecalc with nothing in the URL, you'll see a 50 perf score and each metric has a metric score of 50. nice for playing around.
params.get('key_not_in_params')
returns a null, not undefined, so this wasn't working as we expected it to.fixed and added a few more comments.
intended behavior: if you load the scorecalc with nothing in the URL, you'll see a 50 perf score and each metric has a metric score of 50. nice for playing around.