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
eabac3f6
Commit
eabac3f6
authored
May 22, 2007
by
Ed Engelhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix style, prefix and typo in a few comments
parent
d7fe34c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
event.js
src/event/event.js
+2
-2
jquery.js
src/jquery/jquery.js
+2
-2
No files found.
src/event/event.js
View file @
eabac3f6
...
@@ -307,7 +307,7 @@ jQuery.fn.extend({
...
@@ -307,7 +307,7 @@ jQuery.fn.extend({
* Binds a handler to a particular event (like click) for each matched element.
* Binds a handler to a particular event (like click) for each matched element.
* The handler is executed only once for each element. Otherwise, the same rules
* The handler is executed only once for each element. Otherwise, the same rules
* as described in bind() apply.
* as described in bind() apply.
The event handler is passed an event object that you can use to prevent
*
The event handler is passed an event object that you can use to prevent
* default behaviour. To stop both default action and event bubbling, your handler
* default behaviour. To stop both default action and event bubbling, your handler
* has to return false.
* has to return false.
*
*
...
@@ -570,7 +570,7 @@ jQuery.extend({
...
@@ -570,7 +570,7 @@ jQuery.extend({
// Reset the list of functions
// Reset the list of functions
jQuery
.
readyList
=
null
;
jQuery
.
readyList
=
null
;
}
}
// Remove event lis
ent
er to avoid memory leak
// Remove event lis
ten
er to avoid memory leak
if
(
jQuery
.
browser
.
mozilla
||
jQuery
.
browser
.
opera
)
if
(
jQuery
.
browser
.
mozilla
||
jQuery
.
browser
.
opera
)
document
.
removeEventListener
(
"DOMContentLoaded"
,
jQuery
.
ready
,
false
);
document
.
removeEventListener
(
"DOMContentLoaded"
,
jQuery
.
ready
,
false
);
...
...
src/jquery/jquery.js
View file @
eabac3f6
...
@@ -1484,13 +1484,13 @@ jQuery.extend({
...
@@ -1484,13 +1484,13 @@ jQuery.extend({
if
(
arg
.
constructor
==
Number
)
if
(
arg
.
constructor
==
Number
)
arg
=
arg
.
toString
();
arg
=
arg
.
toString
();
// Convert html string into DOM nodes
// Convert html string into DOM nodes
if
(
typeof
arg
==
"string"
)
{
if
(
typeof
arg
==
"string"
)
{
// Trim whitespace, otherwise indexOf won't work as expected
// Trim whitespace, otherwise indexOf won't work as expected
var
s
=
jQuery
.
trim
(
arg
).
toLowerCase
(),
div
=
doc
.
createElement
(
"div"
),
tb
=
[];
var
s
=
jQuery
.
trim
(
arg
).
toLowerCase
(),
div
=
doc
.
createElement
(
"div"
),
tb
=
[];
var
wrap
=
var
wrap
=
// option or optgroup
// option or optgroup
!
s
.
indexOf
(
"<opt"
)
&&
!
s
.
indexOf
(
"<opt"
)
&&
[
1
,
"<select>"
,
"</select>"
]
||
[
1
,
"<select>"
,
"</select>"
]
||
...
...
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