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
cc562506
Commit
cc562506
authored
Sep 30, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed event test for load; Added fix for bug #225
parent
10532fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
event.js
src/event/event.js
+12
-2
No files found.
src/event/event.js
View file @
cc562506
...
...
@@ -1521,7 +1521,8 @@ new function(){
/**
* @test var count;
* var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," +
* // ignore load
* var e = ("blur,focus,resize,scroll,unload,click,dblclick," +
* "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," +
* "submit,keydown,keypress,keyup,error").split(",");
* var handler1 = function(event) {
...
...
@@ -1554,7 +1555,7 @@ new function(){
* $(document)[event]();
*
* // assert count
*
@test
ok( count == 6, 'Checking event ' + event);
*
ok( count == 6, 'Checking event ' + event);
* }
*
* @private
...
...
@@ -1646,3 +1647,12 @@ new function(){
jQuery
.
event
.
add
(
window
,
"load"
,
jQuery
.
ready
);
};
// Clean up after IE to avoid memory leaks
if
(
$
.
browser
.
msie
)
$
(
window
).
unload
(
function
()
{
var
event
=
jQuery
.
event
,
global
=
event
.
global
;
for
(
var
type
in
global
)
{
var
els
=
global
[
type
],
i
=
els
.
length
;
if
(
i
>
0
)
do
event
.
remove
(
els
[
i
-
1
],
type
);
while
(
--
i
);
}
});
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