Commit 99d7b92f authored by GoshaZotov's avatar GoshaZotov

formatted assembleLocale function

parent 00882207
...@@ -5626,16 +5626,18 @@ parserFormula.prototype.setFormula = function(formula) { ...@@ -5626,16 +5626,18 @@ parserFormula.prototype.setFormula = function(formula) {
} }
}; };
/* Сборка функции в инфиксную форму */ /* Сборка функции в инфиксную форму */
parserFormula.prototype.assembleLocale = function(locale, digitDelim) { parserFormula.prototype.assembleLocale = function (locale, digitDelim) {
if (this.outStack.length == 1 && this.outStack[this.outStack.length - 1] instanceof cError) { if (this.outStack.length == 1 && this.outStack[this.outStack.length - 1] instanceof cError) {
return this.Formula; return this.Formula;
} }
var currentElement = null, _count = this.outStack.length, elemArr = new Array(_count), res = undefined, _count_arg; var currentElement = null, _count = this.outStack.length, elemArr = new Array(_count), res = undefined,
_count_arg;
for (var i = 0, j = 0; i < _count; i++, j++) { for (var i = 0, j = 0; i < _count; i++, j++) {
currentElement = this.outStack[i]; currentElement = this.outStack[i];
if(currentElement.type === cElementType.specialFunctionStart || currentElement.type === cElementType.specialFunctionEnd){ if (currentElement.type === cElementType.specialFunctionStart ||
currentElement.type === cElementType.specialFunctionEnd) {
continue; continue;
} }
...@@ -5657,7 +5659,7 @@ parserFormula.prototype.assembleLocale = function(locale, digitDelim) { ...@@ -5657,7 +5659,7 @@ parserFormula.prototype.assembleLocale = function(locale, digitDelim) {
} else { } else {
return this.Formula; return this.Formula;
} }
}; };
parserFormula.prototype.buildDependencies = function() { parserFormula.prototype.buildDependencies = function() {
if (this.isInDependencies) { if (this.isInDependencies) {
return; return;
......
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