1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | var copyRow = function copyRow(index, row) {
|
13 | this.copyRows(index, [row]);
|
14 | };
|
15 |
|
16 | var copyRows = function copyRows(index, rows) {
|
17 | for (var i = 0; i < rows.length; i++) {
|
18 | var newRow = new Row({ parent: this });
|
19 | if (rows[i]) {
|
20 | newRow.setData(rows[i].getData());
|
21 | }
|
22 | this.insertRows(index === undefined ? this.rows().length : index, [newRow]);
|
23 | }
|
24 | };
|
25 |
|
26 | exports.copyRow = copyRow;
|
27 | exports.copyRows = copyRows; |
\ | No newline at end of file |