Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
c8009abc
Commit
c8009abc
authored
Sep 01, 2006
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lots of documentation overhaul - much more documented, cat output works better now.
parent
805d21c2
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
750 additions
and
749 deletions
+750
-749
docs.js
build/docs/docs.js
+1
-1
doc.js
build/docs/js/doc.js
+5
-3
style.css
build/docs/style/style.css
+0
-2
parse.js
build/js/parse.js
+13
-4
xml.js
build/js/xml.js
+2
-4
event.js
src/event/event.js
+548
-684
jquery.js
src/jquery/jquery.js
+181
-51
No files found.
build/docs/docs.js
View file @
c8009abc
...
@@ -23,6 +23,6 @@ function output( c, n ) {
...
@@ -23,6 +23,6 @@ function output( c, n ) {
writeFile
(
dir
+
"/"
+
(
n
==
"docs"
?
"index"
:
n
)
+
".xml"
,
writeFile
(
dir
+
"/"
+
(
n
==
"docs"
?
"index"
:
n
)
+
".xml"
,
"<?xml version='1.0' encoding='ISO-8859-1'?>
\n
"
+
"<?xml version='1.0' encoding='ISO-8859-1'?>
\n
"
+
"<?xml-stylesheet type='text/xsl' href='style/
docs
.xsl'?>
\n
"
+
xml
"<?xml-stylesheet type='text/xsl' href='style/
"
+
n
+
"
.xsl'?>
\n
"
+
xml
);
);
}
}
build/docs/js/doc.js
View file @
c8009abc
...
@@ -17,9 +17,11 @@ $(document).ready(function(){
...
@@ -17,9 +17,11 @@ $(document).ready(function(){
}).
ToolTipDemo
(
'#fff'
);
}).
ToolTipDemo
(
'#fff'
);
$
(
"a.name"
).
click
(
function
(){
$
(
"a.name"
).
click
(
function
(){
$
(
"div.more,div.short"
,
this
.
parentNode
.
parentNode
).
toggle
(
'slow'
).
find
(
"div.desc"
,
function
(){
$
(
"div.more,div.short"
,
this
.
parentNode
.
parentNode
)
$
(
this
).
html
(
$
(
this
).
html
().
replace
(
/
\n\n
/g
,
"<br/><br/>"
)
);
.
find
(
"div.desc"
,
function
(){
});
$
(
this
).
html
(
$
(
this
).
html
().
replace
(
/
\n\n
/g
,
"<br/><br/>"
)
);
})
.
toggle
(
'slow'
);
return
false
;
return
false
;
});
});
...
...
build/docs/style/style.css
View file @
c8009abc
...
@@ -116,7 +116,6 @@ ul#docs li div.more {
...
@@ -116,7 +116,6 @@ ul#docs li div.more {
}
}
ul
#docs
li
div
.example
{
ul
#docs
li
div
.example
{
overflow
:
auto
;
border-top
:
1px
solid
#DDD
;
border-top
:
1px
solid
#DDD
;
margin-top
:
15px
;
margin-top
:
15px
;
}
}
...
@@ -130,7 +129,6 @@ ul#docs li div.example pre {
...
@@ -130,7 +129,6 @@ ul#docs li div.example pre {
color
:
#000
;
color
:
#000
;
background
:
#EEE
;
background
:
#EEE
;
padding
:
5px
;
padding
:
5px
;
overflow
:
auto
;
font-size
:
0.8em
;
font-size
:
0.8em
;
}
}
...
...
build/js/parse.js
View file @
c8009abc
...
@@ -69,7 +69,7 @@ function parse( f ) {
...
@@ -69,7 +69,7 @@ function parse( f ) {
}
}
function
categorize
(
json
)
{
function
categorize
(
json
)
{
var
obj
=
{
methods
:
[]
};
var
obj
=
{
cat
:
[],
method
:
[]
};
for
(
var
i
=
0
;
i
<
json
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
json
.
length
;
i
++
)
{
if
(
!
json
[
i
].
cat
)
json
[
i
].
cat
=
""
;
if
(
!
json
[
i
].
cat
)
json
[
i
].
cat
=
""
;
...
@@ -79,17 +79,26 @@ function categorize( json ) {
...
@@ -79,17 +79,26 @@ function categorize( json ) {
var
pos
=
obj
;
var
pos
=
obj
;
for
(
var
j
=
0
;
j
<
cat
.
length
;
j
++
)
{
for
(
var
j
=
0
;
j
<
cat
.
length
;
j
++
)
{
var
c
=
cat
[
j
];
var
c
=
cat
[
j
];
var
curCat
=
null
;
// Locate current category
for
(
var
n
=
0
;
n
<
pos
.
cat
.
length
;
n
++
)
if
(
pos
.
cat
[
n
].
value
==
c
)
curCat
=
pos
.
cat
[
n
];
// Create current category
// Create current category
if
(
!
pos
[
c
]
)
pos
[
c
]
=
{
methods
:
[]
};
if
(
!
curCat
)
{
curCat
=
{
value
:
c
,
cat
:
[],
method
:
[]
};
pos
.
cat
.
push
(
curCat
)
}
// If we're at the end, add the method
// If we're at the end, add the method
if
(
j
==
cat
.
length
-
1
)
if
(
j
==
cat
.
length
-
1
)
pos
[
c
].
methods
.
push
(
json
[
i
]
);
curCat
.
method
.
push
(
json
[
i
]
);
// Otherwise, traverse deeper
// Otherwise, traverse deeper
else
else
pos
=
pos
[
c
]
;
pos
=
curCat
;
}
}
}
}
...
...
build/js/xml.js
View file @
c8009abc
...
@@ -9,15 +9,13 @@ Object.toXML = function( obj, tag ) {
...
@@ -9,15 +9,13 @@ Object.toXML = function( obj, tag ) {
var
p
=
""
,
child
=
""
;
var
p
=
""
,
child
=
""
;
for
(
var
i
in
obj
)
for
(
var
i
in
obj
)
if
(
obj
[
i
].
constructor
!=
String
||
/</
.
test
(
obj
[
i
]
+
""
)
||
Object
.
toXML
.
force
[
i
]
)
if
(
(
obj
[
i
].
constructor
!=
String
&&
obj
[
i
].
constructor
!=
Number
)
||
/</
.
test
(
obj
[
i
]
+
""
)
||
Object
.
toXML
.
force
[
i
]
)
child
+=
Object
.
toXML
(
obj
[
i
],
i
);
child
+=
Object
.
toXML
(
obj
[
i
],
i
);
else
else
p
+=
" "
+
i
+
"='"
+
(
obj
[
i
]
+
""
).
replace
(
/'/g
,
"'"
)
+
"'"
;
p
+=
" "
+
i
+
"='"
+
(
obj
[
i
]
+
""
).
replace
(
/'/g
,
"'"
)
+
"'"
;
return
"<"
+
tag
+
p
+
(
child
?
">
\n
"
+
child
+
"</"
+
tag
+
">
\n
"
:
"/>
\n
"
);
return
"<"
+
tag
+
p
+
(
child
?
">
\n
"
+
child
+
"</"
+
tag
+
">
\n
"
:
"/>
\n
"
);
}
else
if
(
obj
.
constructor
==
String
)
{
}
else
if
(
obj
.
constructor
==
String
||
obj
.
constructor
==
Number
)
{
//obj = obj.replace(/</g,"<").replace(/>/g,">");
//return "<" + tag + "><![CDATA[" + obj + "]]></" + tag + ">";
return
"<"
+
tag
+
">"
+
obj
+
"</"
+
tag
+
">
\n
"
;
return
"<"
+
tag
+
">"
+
obj
+
"</"
+
tag
+
">
\n
"
;
}
}
...
...
src/event/event.js
View file @
c8009abc
This diff is collapsed.
Click to expand it.
src/jquery/jquery.js
View file @
c8009abc
This diff is collapsed.
Click to expand it.
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