Skip to content

Commit

Permalink
parseInt width & height to avoid concatenation (w3c#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimsky authored and wlach committed Nov 10, 2017
1 parent f915786 commit f094c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/common/init.js
Expand Up @@ -23,7 +23,7 @@ function mg_is_time_series(args) {
}

function mg_init_compute_width(args) {
var svg_width = args.width;
var svg_width = parseInt(args.width);
if (args.full_width) {
svg_width = get_width(args.target);
}
Expand All @@ -35,7 +35,7 @@ function mg_init_compute_width(args) {
}

function mg_init_compute_height(args) {
var svg_height = args.height;
var svg_height = parseInt(args.height);
if (args.full_height) {
svg_height = get_height(args.target);
}
Expand Down

0 comments on commit f094c95

Please sign in to comment.