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
dbb7855c
Commit
dbb7855c
authored
Apr 12, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cell/model/FormulaObjects/lookupandreferenceFunctions to function-closure
parent
b0c25348
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
cell/model/FormulaObjects/lookupandreferenceFunctions.js
cell/model/FormulaObjects/lookupandreferenceFunctions.js
+15
-3
cell/model/Workbook.js
cell/model/Workbook.js
+4
-4
No files found.
cell/model/FormulaObjects/lookupandreferenceFunctions.js
View file @
dbb7855c
"
use strict
"
;
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function
(
window
,
undefined
)
{
function
_getRowTitle
(
row
)
{
return
""
+
(
row
+
1
);
}
...
...
@@ -293,8 +299,6 @@ function cGETPIVOTDATA() {
cGETPIVOTDATA
.
prototype
=
Object
.
create
(
cBaseFunction
.
prototype
);
var
g_oHLOOKUPCache
=
new
VHLOOKUPCache
(
true
);
function
cHLOOKUP
()
{
// cBaseFunction.call( this, "HLOOKUP" );
// this.setArgumentsMin( 3 );
...
...
@@ -1371,7 +1375,6 @@ VHLOOKUPCache.prototype.clean = function () {
this
.
cacheId
=
{};
this
.
cacheRanges
=
{};
};
var
g_oVLOOKUPCache
=
new
VHLOOKUPCache
(
false
);
function
cVLOOKUP
()
{
// cBaseFunction.call( this, "VLOOKUP" );
...
...
@@ -1611,3 +1614,12 @@ cVLOOKUP.prototype.getInfo = function () {
args
:
"
( lookup-value , table-array , col-index-num [ , [ range-lookup-flag ] ] )
"
};
};
var
g_oVLOOKUPCache
=
new
VHLOOKUPCache
(
false
);
var
g_oHLOOKUPCache
=
new
VHLOOKUPCache
(
true
);
//----------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommonExcel
'
]
=
window
[
'
AscCommonExcel
'
]
||
{};
window
[
'
AscCommonExcel
'
].
g_oVLOOKUPCache
=
g_oVLOOKUPCache
;
window
[
'
AscCommonExcel
'
].
g_oHLOOKUPCache
=
g_oHLOOKUPCache
;
})(
window
);
cell/model/Workbook.js
View file @
dbb7855c
...
...
@@ -1828,8 +1828,8 @@ function sortDependency( wb, setCellFormat ) {
for
(
i
in
oCleanCellCacheArea
)
wb
.
handlers
.
trigger
(
"
cleanCellCache
"
,
i
,
oCleanCellCacheArea
[
i
],
AscCommonExcel
.
c_oAscCanChangeColWidth
.
numbers
);
g_oVLOOKUPCache
.
clean
();
g_oHLOOKUPCache
.
clean
();
AscCommonExcel
.
g_oVLOOKUPCache
.
clean
();
AscCommonExcel
.
g_oHLOOKUPCache
.
clean
();
}
wb
.
needRecalc
=
{
nodes
:
{},
length
:
0
};
}
...
...
@@ -5162,8 +5162,8 @@ Woorksheet.prototype._RecalculatedFunctions=function(cell,bad,setCellFormat){
__cell
.
oValue
.
type
=
CellValueType
.
String
;
__cell
.
oValue
.
text
=
res
.
getValue
().
toString
();
}
g_oVLOOKUPCache
.
remove
(
__cell
);
g_oHLOOKUPCache
.
remove
(
__cell
);
AscCommonExcel
.
g_oVLOOKUPCache
.
remove
(
__cell
);
AscCommonExcel
.
g_oHLOOKUPCache
.
remove
(
__cell
);
__cell
.
setFormulaCA
(
res
.
ca
);
if
(
setCellFormat
){
if
(
res
.
numFormat
!==
undefined
&&
res
.
numFormat
>=
0
){
...
...
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