Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
f0053697
Commit
f0053697
authored
9 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Declare variables to help prevent accidental use of globals.
parent
e573bbe7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/jsdocs.js
+19
-11
19 additions, 11 deletions
exec/jsdocs.js
with
19 additions
and
11 deletions
exec/jsdocs.js
+
19
−
11
View file @
f0053697
...
...
@@ -11,14 +11,15 @@ const li_tag = "<li onclick = 'this.className = (this.className == \"showList\")
"
\t
onselectstart = 'event.returnValue = false;'
"
+
"
>
"
;
min_ver
=
0
;
max_ver
=
999999
;
total_methods
=
0
;
total_properties
=
0
;
table_depth
=
0
;
object_depth
=
0
;
var
min_ver
=
0
;
var
max_ver
=
999999
;
var
total_methods
=
0
;
var
total_properties
=
0
;
var
table_depth
=
0
;
var
object_depth
=
0
;
body
=
""
;
var
body
=
""
;
var
f
;
function
docwrite
(
str
)
{
...
...
@@ -54,6 +55,9 @@ function verstr(ver)
function
document_methods
(
name
,
obj
)
{
var
method
;
var
func
;
if
(
obj
.
_method_list
==
undefined
)
return
;
...
...
@@ -159,9 +163,10 @@ function document_properties(name, obj)
{
var
prop_name
;
var
count
=
0
;
var
prop
;
var
prop_num
;
prop_hdr
=
false
;
var
prop_hdr
=
false
;
var
p
;
p
=
0
;
for
(
prop
in
obj
)
{
...
...
@@ -214,6 +219,8 @@ function document_properties(name, obj)
function
document_object
(
name
,
obj
,
type
)
{
var
i
;
if
(
obj
.
_ver
>
max_ver
)
return
;
...
...
@@ -299,13 +306,14 @@ if(js.global.MsgBase != undefined) document_object("MsgBase" ,new MsgBase(msg_a
if
(
js
.
global
.
File
!=
undefined
)
document_object
(
"
File
"
,
new
File
(
system
.
devnull
),
"
class
"
);
if
(
js
.
global
.
Queue
!=
undefined
)
document_object
(
"
Queue
"
,
new
Queue
(),
"
class
"
);
if
(
js
.
global
.
Socket
!=
undefined
)
{
sock
=
new
Socket
();
var
sock
=
new
Socket
();
sock
.
close
();
if
(
js
.
global
.
client
!=
undefined
)
sock
.
descriptor
=
client
.
socket
.
descriptor
;
if
(
sock
!=
undefined
)
document_object
(
"
Socket
"
,
sock
,
"
class
"
);
}
if
(
js
.
global
.
COM
!=
undefined
)
{
var
com
;
if
(
system
.
platform
==
"
Win32
"
)
com
=
new
COM
(
'
COM1
'
);
else
...
...
@@ -314,7 +322,7 @@ if(js.global.COM != undefined) {
if
(
com
!=
undefined
)
document_object
(
"
COM
"
,
com
,
"
class
"
);
}
if
(
js
.
global
.
CryptContext
!=
undefined
)
{
cc
=
new
CryptContext
(
CryptContext
.
ALGO
.
AES
);
var
cc
=
new
CryptContext
(
CryptContext
.
ALGO
.
AES
);
if
(
cc
!=
undefined
)
document_object
(
"
CryptContext
"
,
cc
,
"
class
"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment