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
970eb0f0
Commit
970eb0f0
authored
May 23, 2007
by
Brandon Aaron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rolling back Rev 1892
parent
79b3ff07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
coreTest.js
src/jquery/coreTest.js
+1
-4
jquery.js
src/jquery/jquery.js
+1
-1
No files found.
src/jquery/coreTest.js
View file @
970eb0f0
...
@@ -12,7 +12,7 @@ test("Basic requirements", function() {
...
@@ -12,7 +12,7 @@ test("Basic requirements", function() {
});
});
test
(
"$()"
,
function
()
{
test
(
"$()"
,
function
()
{
expect
(
4
);
expect
(
3
);
var
main
=
$
(
"#main"
);
var
main
=
$
(
"#main"
);
isSet
(
$
(
"div p"
,
main
).
get
(),
q
(
"sndp"
,
"en"
,
"sap"
),
"Basic selector with jQuery object as context"
);
isSet
(
$
(
"div p"
,
main
).
get
(),
q
(
"sndp"
,
"en"
,
"sap"
),
"Basic selector with jQuery object as context"
);
...
@@ -32,9 +32,6 @@ test("$()", function() {
...
@@ -32,9 +32,6 @@ test("$()", function() {
pass
=
false
;
pass
=
false
;
}
}
ok
(
pass
,
"$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968"
);
ok
(
pass
,
"$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968"
);
var
form
=
$
(
"form"
)[
0
];
equals
(
15
,
$
(
form
.
elements
).
size
(),
"$(form.elements)"
);
});
});
test
(
"isFunction"
,
function
()
{
test
(
"isFunction"
,
function
()
{
...
...
src/jquery/jquery.js
View file @
970eb0f0
...
@@ -176,7 +176,7 @@ jQuery.fn = jQuery.prototype = {
...
@@ -176,7 +176,7 @@ jQuery.fn = jQuery.prototype = {
// HANDLE: $(arraylike)
// HANDLE: $(arraylike)
// Watch for when an array-like object is passed as the selector
// Watch for when an array-like object is passed as the selector
(
a
.
jquery
||
a
.
length
&&
a
!=
window
&&
(
!
a
.
nodeType
||
(
jQuery
.
browser
.
msie
&&
a
.
elements
))
&&
a
[
0
]
!=
undefined
&&
a
[
0
].
nodeType
)
&&
jQuery
.
makeArray
(
a
)
||
(
a
.
jquery
||
a
.
length
&&
a
!=
window
&&
!
a
.
nodeType
&&
a
[
0
]
!=
undefined
&&
a
[
0
].
nodeType
)
&&
jQuery
.
makeArray
(
a
)
||
// HANDLE: $(*)
// HANDLE: $(*)
[
a
]
);
[
a
]
);
...
...
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