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