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
11e6a660
Commit
11e6a660
authored
Jan 03, 2013
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deleteExpando detect.
parent
aa529696
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
support.js
src/support.js
+0
-8
data.js
test/unit/data.js
+0
-34
No files found.
src/support.js
View file @
11e6a660
...
@@ -36,7 +36,6 @@ jQuery.support = (function() {
...
@@ -36,7 +36,6 @@ jQuery.support = (function() {
boxModel
:
document
.
compatMode
===
"CSS1Compat"
,
boxModel
:
document
.
compatMode
===
"CSS1Compat"
,
// Will be defined later
// Will be defined later
deleteExpando
:
true
,
noCloneEvent
:
true
,
noCloneEvent
:
true
,
reliableMarginRight
:
true
,
reliableMarginRight
:
true
,
boxSizingReliable
:
true
,
boxSizingReliable
:
true
,
...
@@ -52,13 +51,6 @@ jQuery.support = (function() {
...
@@ -52,13 +51,6 @@ jQuery.support = (function() {
select
.
disabled
=
true
;
select
.
disabled
=
true
;
support
.
optDisabled
=
!
opt
.
disabled
;
support
.
optDisabled
=
!
opt
.
disabled
;
// Support: IE<9
try
{
delete
div
.
test
;
}
catch
(
e
)
{
support
.
deleteExpando
=
false
;
}
// Check if an input maintains its value after becoming a radio
// Check if an input maintains its value after becoming a radio
input
=
document
.
createElement
(
"input"
);
input
=
document
.
createElement
(
"input"
);
input
.
value
=
"t"
;
input
.
value
=
"t"
;
...
...
test/unit/data.js
View file @
11e6a660
...
@@ -99,40 +99,6 @@ test("jQuery.data(document)", 25, function() {
...
@@ -99,40 +99,6 @@ test("jQuery.data(document)", 25, function() {
QUnit
.
expectJqData
(
document
,
"foo"
);
QUnit
.
expectJqData
(
document
,
"foo"
);
});
});
test
(
"Expando cleanup"
,
4
,
function
()
{
var
expected
,
actual
,
div
=
document
.
createElement
(
"div"
);
function
assertExpandoAbsent
(
message
)
{
if
(
jQuery
.
support
.
deleteExpando
)
{
expected
=
false
;
actual
=
jQuery
.
expando
in
div
;
}
else
{
expected
=
null
;
actual
=
div
[
jQuery
.
expando
];
}
equal
(
actual
,
expected
,
message
);
}
assertExpandoAbsent
(
"There is no expando on new elements"
);
jQuery
.
data
(
div
,
"foo"
,
100
);
jQuery
.
data
(
div
,
"bar"
,
200
);
ok
(
jQuery
.
expando
in
div
,
"There is an expando on the element after using $.data()"
);
jQuery
.
removeData
(
div
,
"foo"
);
ok
(
jQuery
.
expando
in
div
,
"There is still an expando on the element after removing (some) of the data"
);
jQuery
.
removeData
(
div
,
"bar"
);
assertExpandoAbsent
(
"Removing the last item in the data store deletes the expando"
);
// Clean up unattached element
jQuery
(
div
).
remove
();
});
test
(
"jQuery.acceptData"
,
function
()
{
test
(
"jQuery.acceptData"
,
function
()
{
expect
(
7
);
expect
(
7
);
...
...
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