Commit c5dc98fc authored by Alexander.Trofimov's avatar Alexander.Trofimov

selectionRange.clone with worksheet

parent e58d6308
...@@ -591,14 +591,14 @@ ...@@ -591,14 +591,14 @@
return item.containsRange(range); return item.containsRange(range);
}); });
}; };
SelectionRange.prototype.clone = function () { SelectionRange.prototype.clone = function (worksheet) {
var res = new SelectionRange(); var res = new SelectionRange();
res.ranges = this.ranges.map(function (range) { res.ranges = this.ranges.map(function (range) {
return range.clone(); return range.clone();
}); });
res.activeCell = this.activeCell.clone(); res.activeCell = this.activeCell.clone();
res.activeCellId = this.activeCellId; res.activeCellId = this.activeCellId;
res.worksheet = this.worksheet; res.worksheet = worksheet || this.worksheet;
return res; return res;
}; };
SelectionRange.prototype.isEqual = function (range) { SelectionRange.prototype.isEqual = function (range) {
......
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