Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
11e52eee
Commit
11e52eee
authored
Oct 25, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove argumentsCurrent from formulas functions
parent
35e00d55
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
22 deletions
+7
-22
cell/model/FormulaObjects/logicalFunctions.js
cell/model/FormulaObjects/logicalFunctions.js
+1
-1
cell/model/FormulaObjects/lookupandreferenceFunctions.js
cell/model/FormulaObjects/lookupandreferenceFunctions.js
+4
-4
cell/model/FormulaObjects/mathematicFunctions.js
cell/model/FormulaObjects/mathematicFunctions.js
+0
-3
cell/model/FormulaObjects/statisticalFunctions.js
cell/model/FormulaObjects/statisticalFunctions.js
+0
-12
cell/model/FormulaObjects/textanddataFunctions.js
cell/model/FormulaObjects/textanddataFunctions.js
+2
-2
No files found.
cell/model/FormulaObjects/logicalFunctions.js
View file @
11e52eee
...
...
@@ -278,7 +278,7 @@
break
;
}
}
if
(
i
===
this
.
argumentsCurrent
-
1
)
{
if
(
i
===
arg
.
length
-
1
)
{
res
=
new
cError
(
cErrorType
.
not_available
);
break
;
}
...
...
cell/model/FormulaObjects/lookupandreferenceFunctions.js
View file @
11e52eee
...
...
@@ -269,7 +269,7 @@ function (window, undefined) {
cCOLUMN
.
prototype
.
argumentsMax
=
1
;
cCOLUMN
.
prototype
.
Calculate
=
function
(
arg
)
{
var
bbox
;
if
(
0
===
this
.
argumentsCurrent
)
{
if
(
0
===
arg
.
length
)
{
bbox
=
arguments
[
1
];
}
else
{
var
arg0
=
arg
[
0
];
...
...
@@ -538,7 +538,7 @@ function (window, undefined) {
cLOOKUP
.
prototype
.
argumentsMin
=
2
;
cLOOKUP
.
prototype
.
argumentsMax
=
3
;
cLOOKUP
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
],
arg2
=
2
===
this
.
argumentsCurrent
?
arg1
:
arg
[
2
],
resC
=
-
1
,
resR
=
-
1
,
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
],
arg2
=
2
===
arg
.
length
?
arg1
:
arg
[
2
],
resC
=
-
1
,
resR
=
-
1
,
t
=
this
;
if
(
cElementType
.
error
===
arg0
.
type
)
{
...
...
@@ -657,7 +657,7 @@ function (window, undefined) {
}
var
b
=
arg2
.
getBBox0
();
if
(
2
===
this
.
argumentsCurrent
)
{
if
(
2
===
arg
.
length
)
{
if
(
arg1Range
[
0
].
length
>=
2
)
{
return
new
cRef
(
ws
.
getCell3
(
b
.
r1
+
index
,
b
.
c2
+
0
).
getName
(),
ws
);
}
else
{
...
...
@@ -865,7 +865,7 @@ function (window, undefined) {
cROW
.
prototype
.
argumentsMax
=
1
;
cROW
.
prototype
.
Calculate
=
function
(
arg
)
{
var
bbox
;
if
(
0
===
this
.
argumentsCurrent
)
{
if
(
0
===
arg
.
length
)
{
bbox
=
arguments
[
1
];
}
else
{
var
arg0
=
arg
[
0
];
...
...
cell/model/FormulaObjects/mathematicFunctions.js
View file @
11e52eee
...
...
@@ -4445,9 +4445,6 @@
return
new
cNumber
(
_sum
);
};
cSUMIFS
.
prototype
.
checkArguments
=
function
(
countArguments
)
{
if
(
undefined
===
countArguments
){
countArguments
=
this
.
argumentsCurrent
;
}
return
1
===
countArguments
%
2
&&
cBaseFunction
.
prototype
.
checkArguments
.
apply
(
this
,
arguments
);
};
...
...
cell/model/FormulaObjects/statisticalFunctions.js
View file @
11e52eee
...
...
@@ -4041,9 +4041,6 @@ function (window, undefined) {
}
};
cAVERAGEIFS
.
prototype
.
checkArguments
=
function
(
countArguments
)
{
if
(
undefined
===
countArguments
){
countArguments
=
this
.
argumentsCurrent
;
}
return
1
===
countArguments
%
2
&&
cBaseFunction
.
prototype
.
checkArguments
.
apply
(
this
,
arguments
);
};
...
...
@@ -5070,9 +5067,6 @@ function (window, undefined) {
return
new
cNumber
(
_count
);
};
cCOUNTIFS
.
prototype
.
checkArguments
=
function
(
countArguments
)
{
if
(
undefined
===
countArguments
){
countArguments
=
this
.
argumentsCurrent
;
}
return
0
===
countArguments
%
2
&&
cBaseFunction
.
prototype
.
checkArguments
.
apply
(
this
,
arguments
);
};
...
...
@@ -7769,9 +7763,6 @@ function (window, undefined) {
return
new
cNumber
(
resArr
[
0
]);
};
cMAXIFS
.
prototype
.
checkArguments
=
function
(
countArguments
)
{
if
(
undefined
===
countArguments
){
countArguments
=
this
.
argumentsCurrent
;
}
return
1
===
countArguments
%
2
&&
cBaseFunction
.
prototype
.
checkArguments
.
apply
(
this
,
arguments
);
};
...
...
@@ -7876,9 +7867,6 @@ function (window, undefined) {
return
new
cNumber
(
resArr
[
0
]);
};
cMINIFS
.
prototype
.
checkArguments
=
function
(
countArguments
)
{
if
(
undefined
===
countArguments
){
countArguments
=
this
.
argumentsCurrent
;
}
return
1
===
countArguments
%
2
&&
cBaseFunction
.
prototype
.
checkArguments
.
apply
(
this
,
arguments
);
};
...
...
cell/model/FormulaObjects/textanddataFunctions.js
View file @
11e52eee
...
...
@@ -858,7 +858,7 @@ function (window, undefined) {
cLEFT
.
prototype
.
argumentsMin
=
1
;
cLEFT
.
prototype
.
argumentsMax
=
2
;
cLEFT
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
this
.
argumentsCurrent
==
1
?
new
cNumber
(
1
)
:
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
.
length
==
1
?
new
cNumber
(
1
)
:
arg
[
1
];
if
(
arg0
instanceof
cArea
||
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
]);
}
...
...
@@ -1417,7 +1417,7 @@ function (window, undefined) {
cRIGHT
.
prototype
.
argumentsMin
=
1
;
cRIGHT
.
prototype
.
argumentsMax
=
2
;
cRIGHT
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
this
.
argumentsCurrent
==
1
?
new
cNumber
(
1
)
:
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
.
length
=
==
1
?
new
cNumber
(
1
)
:
arg
[
1
];
if
(
arg0
instanceof
cArea
||
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment