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
5250ceca
Commit
5250ceca
authored
Jun 05, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_checkErrorArg return null or error
parent
c2979a1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
cell/model/FormulaObjects/mathematicFunctions.js
cell/model/FormulaObjects/mathematicFunctions.js
+8
-8
cell/model/FormulaObjects/parserFormula.js
cell/model/FormulaObjects/parserFormula.js
+3
-6
No files found.
cell/model/FormulaObjects/mathematicFunctions.js
View file @
5250ceca
...
...
@@ -638,7 +638,7 @@
argClone
[
2
]
=
argClone
[
2
]
?
argClone
[
2
].
tocNumber
()
:
new
cNumber
(
0
);
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
@@ -801,7 +801,7 @@
argClone
[
2
]
=
argClone
[
2
]
?
argClone
[
2
].
tocNumber
()
:
new
cNumber
(
0
);
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
@@ -856,7 +856,7 @@
argClone
[
1
]
=
argClone
[
1
]
?
argClone
[
1
].
tocNumber
()
:
new
cNumber
(
1
);
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
@@ -995,7 +995,7 @@
argClone
[
1
]
=
argClone
[
1
].
tocNumber
();
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
@@ -1360,7 +1360,7 @@
argClone
[
1
]
=
argClone
[
1
].
tocNumber
();
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
@@ -1833,7 +1833,7 @@
argClone
[
1
]
=
argClone
[
1
]
?
argClone
[
1
].
tocNumber
()
:
new
cNumber
(
1
);
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
@@ -1885,7 +1885,7 @@
argClone
[
2
]
=
argClone
[
2
]
?
argClone
[
2
].
tocNumber
()
:
new
cNumber
(
0
);
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
@@ -2088,7 +2088,7 @@
argClone
[
1
]
=
argClone
[
1
]
?
argClone
[
1
].
tocNumber
()
:
new
cNumber
(
1
);
var
argError
;
if
(
false
!==
(
argError
=
this
.
_checkErrorArg
(
argClone
)))
{
if
(
argError
=
this
.
_checkErrorArg
(
argClone
))
{
return
this
.
value
=
argError
;
}
...
...
cell/model/FormulaObjects/parserFormula.js
View file @
5250ceca
...
...
@@ -2415,15 +2415,12 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
return
arg
;
};
cBaseFunction
.
prototype
.
_checkErrorArg
=
function
(
argArray
)
{
var
res
=
false
;
for
(
var
i
=
0
;
i
<
argArray
.
length
;
i
++
)
{
if
(
argArray
[
i
]
instanceof
cError
)
{
for
(
var
i
=
0
;
i
<
argArray
.
length
;
i
++
)
{
if
(
cElementType
.
error
===
argArray
[
i
].
type
)
{
return
argArray
[
i
];
}
}
return
res
;
return
null
;
};
/** @constructor */
...
...
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