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
2231fcd1
Commit
2231fcd1
authored
May 04, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/apiBase to function closure
parent
4ac6161c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
12 deletions
+19
-12
cell/api.js
cell/api.js
+2
-2
common/Local/common.js
common/Local/common.js
+1
-1
common/Private/license.js
common/Private/license.js
+2
-2
common/Private/versionHistory.js
common/Private/versionHistory.js
+2
-2
common/apiBase.js
common/apiBase.js
+8
-1
slide/api.js
slide/api.js
+2
-2
word/api.js
word/api.js
+2
-2
No files found.
cell/api.js
View file @
2231fcd1
...
...
@@ -44,7 +44,7 @@ var editor;
* @param eventsHandlers
* @constructor
* @returns {spreadsheet_api}
* @extends {baseEditorsApi}
* @extends {
AscCommon.
baseEditorsApi}
*/
function
spreadsheet_api
(
name
,
inputName
,
eventsHandlers
)
{
spreadsheet_api
.
superclass
.
constructor
.
call
(
this
,
name
);
...
...
@@ -108,7 +108,7 @@ var editor;
this
.
_init
();
return
this
;
}
AscCommon
.
extendClass
(
spreadsheet_api
,
baseEditorsApi
);
AscCommon
.
extendClass
(
spreadsheet_api
,
AscCommon
.
baseEditorsApi
);
spreadsheet_api
.
prototype
.
sendEvent
=
function
()
{
this
.
handlers
.
trigger
.
apply
(
this
.
handlers
,
arguments
);
...
...
common/Local/common.js
View file @
2231fcd1
...
...
@@ -5,7 +5,7 @@ function CheckLicense(licenseUrl, customerId, userId, userFirstName, userLastNam
callback
(
true
,
g_oLicenseResult
.
Success
);
}
baseEditorsApi
.
prototype
.
_onEndPermissions
=
function
()
AscCommon
.
baseEditorsApi
.
prototype
.
_onEndPermissions
=
function
()
{
if
(
this
.
isOnFirstConnectEnd
&&
this
.
isOnLoadLicense
)
{
...
...
common/Private/license.js
View file @
2231fcd1
...
...
@@ -76,11 +76,11 @@ function CheckUserInLicense(customerId, userId, userFirstName, userLastName, oLi
return
res
;
}
baseEditorsApi
.
prototype
.
_onCheckLicenseEnd
=
function
(
err
,
res
)
{
AscCommon
.
baseEditorsApi
.
prototype
.
_onCheckLicenseEnd
=
function
(
err
,
res
)
{
this
.
licenseResult
=
{
err
:
err
,
res
:
res
};
this
.
_onEndPermissions
();
};
baseEditorsApi
.
prototype
.
_onEndPermissions
=
function
()
{
AscCommon
.
baseEditorsApi
.
prototype
.
_onEndPermissions
=
function
()
{
if
(
this
.
isOnFirstConnectEnd
&&
this
.
isOnLoadLicense
)
{
var
oResult
=
new
AscCommon
.
asc_CAscEditorPermissions
();
if
(
null
!==
this
.
licenseResult
)
{
...
...
common/Private/versionHistory.js
View file @
2231fcd1
...
...
@@ -66,7 +66,7 @@
prot
[
"
asc_setArrColors
"
]
=
prot
.
asc_setArrColors
;
})(
window
);
baseEditorsApi
.
prototype
.
asc_showRevision
=
function
(
newObj
)
{
AscCommon
.
baseEditorsApi
.
prototype
.
asc_showRevision
=
function
(
newObj
)
{
if
(
!
newObj
.
docId
)
{
return
;
}
...
...
@@ -96,4 +96,4 @@ baseEditorsApi.prototype.asc_showRevision = function(newObj) {
AscCommon
.
CollaborativeEditing
.
Apply_Changes
();
}
};
baseEditorsApi
.
prototype
[
'
asc_showRevision
'
]
=
baseEditorsApi
.
prototype
.
asc_showRevision
;
\ No newline at end of file
AscCommon
.
baseEditorsApi
.
prototype
[
'
asc_showRevision
'
]
=
AscCommon
.
baseEditorsApi
.
prototype
.
asc_showRevision
;
\ No newline at end of file
common/apiBase.js
View file @
2231fcd1
"
use strict
"
;
(
function
(
window
,
undefined
){
// Import
var
offlineMode
=
AscCommon
.
offlineMode
;
var
c_oEditorId
=
AscCommon
.
c_oEditorId
;
...
...
@@ -576,4 +578,9 @@ baseEditorsApi.prototype.asc_isOffline = function() {
};
baseEditorsApi
.
prototype
.
asc_getUrlType
=
function
(
url
)
{
return
AscCommon
.
getUrlType
(
url
);
};
\ No newline at end of file
};
//----------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommon
'
]
=
window
[
'
AscCommon
'
]
||
{};
window
[
'
AscCommon
'
].
baseEditorsApi
=
baseEditorsApi
;
})(
window
);
slide/api.js
View file @
2231fcd1
...
...
@@ -36,7 +36,7 @@ var c_oSerFormat = {
*
* @param name
* @constructor
* @extends {baseEditorsApi}
* @extends {
AscCommon.
baseEditorsApi}
*/
function
asc_docs_api
(
name
)
{
...
...
@@ -123,7 +123,7 @@ function asc_docs_api(name)
editor
=
window
.
editor
;
}
}
AscCommon
.
extendClass
(
asc_docs_api
,
baseEditorsApi
);
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
asc_docs_api
.
prototype
.
sendEvent
=
function
()
{
this
.
asc_fireCallback
.
apply
(
this
,
arguments
);
...
...
word/api.js
View file @
2231fcd1
...
...
@@ -204,7 +204,7 @@ CMailMergeSendData.prototype.put_UserId = function(v){this["userId"] = v;};
*
* @param name
* @constructor
* @extends {baseEditorsApi}
* @extends {
AscCommon.
baseEditorsApi}
*/
function
asc_docs_api
(
name
)
{
...
...
@@ -321,7 +321,7 @@ function asc_docs_api(name)
//g_clipboardBase.Init(this);
}
AscCommon
.
extendClass
(
asc_docs_api
,
baseEditorsApi
);
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
asc_docs_api
.
prototype
.
sendEvent
=
function
()
{
this
.
asc_fireCallback
.
apply
(
this
,
arguments
);
...
...
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