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
6c29dd24
Commit
6c29dd24
authored
Jan 14, 2013
by
Richard Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0a3a424e
with moar guard for IE6
parent
63f40866
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
event.js
test/unit/event.js
+4
-4
No files found.
test/unit/event.js
View file @
6c29dd24
...
@@ -1234,7 +1234,7 @@ test(".trigger() doesn't bubble load event (#10717)", function() {
...
@@ -1234,7 +1234,7 @@ test(".trigger() doesn't bubble load event (#10717)", function() {
test
(
"Delegated events in SVG (#10791; #13180)"
,
function
()
{
test
(
"Delegated events in SVG (#10791; #13180)"
,
function
()
{
expect
(
2
);
expect
(
2
);
var
instanceRoot
,
e
,
var
useElem
,
e
,
svg
=
jQuery
(
svg
=
jQuery
(
"<svg height='1' version='1.1' width='1' xmlns='http://www.w3.org/2000/svg'>"
+
"<svg height='1' version='1.1' width='1' xmlns='http://www.w3.org/2000/svg'>"
+
"<defs><rect id='ref' x='10' y='20' width='100' height='60' r='10' rx='10' ry='10'></rect></defs>"
+
"<defs><rect id='ref' x='10' y='20' width='100' height='60' r='10' rx='10' ry='10'></rect></defs>"
+
...
@@ -1258,11 +1258,11 @@ test("Delegated events in SVG (#10791; #13180)", function() {
...
@@ -1258,11 +1258,11 @@ test("Delegated events in SVG (#10791; #13180)", function() {
// Fire a native click on an SVGElementInstance (the instance tree of an SVG <use>)
// Fire a native click on an SVGElementInstance (the instance tree of an SVG <use>)
// to confirm that it doesn't break our event delegation handling (#13180)
// to confirm that it doesn't break our event delegation handling (#13180)
instanceRoot
=
svg
.
find
(
"#use"
)[
0
].
instanceRoot
;
useElem
=
svg
.
find
(
"#use"
)[
0
]
;
if
(
instanceRoot
&&
document
.
createEven
t
)
{
if
(
document
.
createEvent
&&
useElem
&&
useElem
.
instanceRoo
t
)
{
e
=
document
.
createEvent
(
"MouseEvents"
);
e
=
document
.
createEvent
(
"MouseEvents"
);
e
.
initEvent
(
"click"
,
true
,
true
);
e
.
initEvent
(
"click"
,
true
,
true
);
instanceRoot
.
dispatchEvent
(
e
);
useElem
.
instanceRoot
.
dispatchEvent
(
e
);
}
}
jQuery
(
"#qunit-fixture"
).
off
(
"click"
);
jQuery
(
"#qunit-fixture"
).
off
(
"click"
);
...
...
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