Commit 30aee4fc authored by Robert Knight's avatar Robert Knight

Specify args explicitly rather than using a rest param

This makes it easier to see what arguments are expected reading the
code.
parent 49b9fad9
...@@ -76,8 +76,8 @@ describe('ImageTextLayer', () => { ...@@ -76,8 +76,8 @@ describe('ImageTextLayer', () => {
return { container, image }; return { container, image };
} }
function createTextLayer(...args) { function createTextLayer(image, charBoxes, text) {
const textLayer = new ImageTextLayer(...args); const textLayer = new ImageTextLayer(image, charBoxes, text);
textLayers.push(textLayer); textLayers.push(textLayer);
return textLayer; return textLayer;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment