Commit 7a80f70e authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete setName function from cBaseFunction

change _B classes (function ex cFINDB)
parent f1968ab5
...@@ -2299,9 +2299,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -2299,9 +2299,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
cBaseFunction.prototype.IncrementArguments = function () { cBaseFunction.prototype.IncrementArguments = function () {
++this.argumentsCurrent; ++this.argumentsCurrent;
}; };
cBaseFunction.prototype.setName = function (name) {
this.name = name;
};
cBaseFunction.prototype.setArgumentsCount = function (count) { cBaseFunction.prototype.setArgumentsCount = function (count) {
this.argumentsCurrent = count; this.argumentsCurrent = count;
}; };
......
...@@ -619,13 +619,18 @@ ...@@ -619,13 +619,18 @@
}; };
}; };
/** @constructor */ /**
* @constructor
* @extends {cFIND}
*/
function cFINDB() { function cFINDB() {
var r = new cFIND(); cFIND.call(this);
r.setName("FINDB"); this.name = "FINDB";
return r;
} }
cFINDB.prototype = Object.create(cFIND.prototype);
cFINDB.prototype.constructor = cFINDB;
/** /**
* @constructor * @constructor
* @extends {AscCommonExcel.cBaseFunction} * @extends {AscCommonExcel.cBaseFunction}
...@@ -893,13 +898,18 @@ ...@@ -893,13 +898,18 @@
}; };
}; };
/** @constructor */ /**
* @constructor
* @extends {cLEFT}
*/
function cLEFTB() { function cLEFTB() {
var r = new cLEFT(); cLEFT.call(this);
r.setName("LEFTB"); this.name = "LEFTB";
return r;
} }
cLEFTB.prototype = Object.create(cLEFT.prototype);
cLEFTB.prototype.constructor = cLEFTB;
/** /**
* @constructor * @constructor
* @extends {AscCommonExcel.cBaseFunction} * @extends {AscCommonExcel.cBaseFunction}
...@@ -939,13 +949,18 @@ ...@@ -939,13 +949,18 @@
}; };
}; };
/** @constructor */ /**
* @constructor
* @extends {cLEN}
*/
function cLENB() { function cLENB() {
var r = new cLEN(); cLEN.call(this);
r.setName("LENB"); this.name = "LENB";
return r;
} }
cLENB.prototype = Object.create(cLEN.prototype);
cLENB.prototype.constructor = cLENB;
/** /**
* @constructor * @constructor
* @extends {AscCommonExcel.cBaseFunction} * @extends {AscCommonExcel.cBaseFunction}
...@@ -1059,13 +1074,18 @@ ...@@ -1059,13 +1074,18 @@
}; };
}; };
/** @constructor */ /**
* @constructor
* @extends {cMID}
*/
function cMIDB() { function cMIDB() {
var r = new cMID(); cMID.call(this);
r.setName("MIDB"); this.name = "MIDB";
return r;
} }
cMIDB.prototype = Object.create(cMID.prototype);
cMIDB.prototype.constructor = cMIDB;
/** /**
* @constructor * @constructor
* @extends {AscCommonExcel.cBaseFunction} * @extends {AscCommonExcel.cBaseFunction}
...@@ -1231,13 +1251,18 @@ ...@@ -1231,13 +1251,18 @@
}; };
}; };
/** @constructor */ /**
* @constructor
* @extends {cREPLACE}
*/
function cREPLACEB() { function cREPLACEB() {
var r = new cREPLACE(); cREPLACE.call(this);
r.setName("REPLACEB"); this.name = "REPLACEB";
return r;
} }
cREPLACEB.prototype = Object.create(cREPLACE.prototype);
cREPLACEB.prototype.constructor = cREPLACEB;
/** /**
* @constructor * @constructor
* @extends {AscCommonExcel.cBaseFunction} * @extends {AscCommonExcel.cBaseFunction}
...@@ -1360,13 +1385,18 @@ ...@@ -1360,13 +1385,18 @@
}; };
}; };
/** @constructor */ /**
* @constructor
* @extends {cRIGHT}
*/
function cRIGHTB() { function cRIGHTB() {
var r = new cRIGHT(); cRIGHT.call(this);
r.setName("RIGHTB"); this.name = "RIGHTB";
return r;
} }
cRIGHTB.prototype = Object.create(cRIGHT.prototype);
cRIGHTB.prototype.constructor = cRIGHTB;
/** /**
* @constructor * @constructor
* @extends {AscCommonExcel.cBaseFunction} * @extends {AscCommonExcel.cBaseFunction}
...@@ -1462,13 +1492,18 @@ ...@@ -1462,13 +1492,18 @@
}; };
}; };
/** @constructor */ /**
* @constructor
* @extends {cRIGHT}
*/
function cSEARCHB() { function cSEARCHB() {
var r = new cSEARCH(); cSEARCH.call(this);
r.setName("SEARCHB"); this.name = "SEARCHB";
return r;
} }
cSEARCHB.prototype = Object.create(cSEARCH.prototype);
cSEARCHB.prototype.constructor = cSEARCHB;
/** /**
* @constructor * @constructor
* @extends {AscCommonExcel.cBaseFunction} * @extends {AscCommonExcel.cBaseFunction}
......
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