First of all, thank you for the great work on envjs!
While upgrading our integration tests from envjs 0.3.7 to 1.3.pre1 I noticed that when insertCell (html.js) is called with idx === numCells an error is thrown, because node is null when passed to insertBefore.
To fix this, the line this.insertBefore(cell, node); needs to be placed 2 lines higher within the else block. So the new cell is either appended at the end of the row, or inserted before an existing cell.
Kind regards,
Orslumen
PS. If you prefer a pull request, pls let me know.
First of all, thank you for the great work on envjs!
While upgrading our integration tests from envjs 0.3.7 to 1.3.pre1 I noticed that when
insertCell
(html.js) is called withidx === numCells
an error is thrown, because node is null when passed toinsertBefore
.To fix this, the line
this.insertBefore(cell, node);
needs to be placed 2 lines higher within the else block. So the new cell is either appended at the end of the row, or inserted before an existing cell.Kind regards, Orslumen
PS. If you prefer a pull request, pls let me know.