Commit f119db5b authored by Boris Kocherov's avatar Boris Kocherov

ParserFormula: add simple clone for all cBaseType

parent 1194b142
...@@ -638,6 +638,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -638,6 +638,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
this.value = val; this.value = val;
} }
cBaseType.prototype.clone = function () {
return new this.constructor(this.value);
};
cBaseType.prototype.cloneTo = function (oRes) { cBaseType.prototype.cloneTo = function (oRes) {
oRes.needRecalc = this.needRecalc; oRes.needRecalc = this.needRecalc;
oRes.numFormat = this.numFormat; oRes.numFormat = this.numFormat;
......
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