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
2ce5e959
Commit
2ce5e959
authored
Aug 05, 2011
by
Rick Waldron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supports interoperable removal of hyphenated/camelCase properties. Fixes #9413
parent
7daf44b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
data.js
src/data.js
+14
-2
No files found.
src/data.js
View file @
2ce5e959
...
@@ -135,7 +135,12 @@ jQuery.extend({
...
@@ -135,7 +135,12 @@ jQuery.extend({
return
;
return
;
}
}
var
internalKey
=
jQuery
.
expando
,
isNode
=
elem
.
nodeType
,
var
thisCache
,
// Reference to internal data cache key
internalKey
=
jQuery
.
expando
,
isNode
=
elem
.
nodeType
,
// See jQuery.data for more information
// See jQuery.data for more information
cache
=
isNode
?
jQuery
.
cache
:
elem
,
cache
=
isNode
?
jQuery
.
cache
:
elem
,
...
@@ -150,9 +155,16 @@ jQuery.extend({
...
@@ -150,9 +155,16 @@ jQuery.extend({
}
}
if
(
name
)
{
if
(
name
)
{
var
thisCache
=
pvt
?
cache
[
id
][
internalKey
]
:
cache
[
id
];
thisCache
=
pvt
?
cache
[
id
][
internalKey
]
:
cache
[
id
];
if
(
thisCache
)
{
if
(
thisCache
)
{
// Support interoperable removal of hyphenated or camelcased keys
if
(
!
thisCache
[
name
]
)
{
name
=
jQuery
.
camelCase
(
name
);
}
delete
thisCache
[
name
];
delete
thisCache
[
name
];
// If there is no data left in the cache, we want to continue
// If there is no data left in the cache, we want to continue
...
...
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