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
f44d5e1e
Commit
f44d5e1e
authored
Aug 17, 2011
by
Rick Waldron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure cache[id] exists before attempting to delete it. Fixes #10080
parent
1a738cb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
data.js
src/data.js
+2
-1
No files found.
src/data.js
View file @
f44d5e1e
...
@@ -191,7 +191,8 @@ jQuery.extend({
...
@@ -191,7 +191,8 @@ jQuery.extend({
// Browsers that fail expando deletion also refuse to delete expandos on
// Browsers that fail expando deletion also refuse to delete expandos on
// the window, but it will allow it on all other JS objects; other browsers
// the window, but it will allow it on all other JS objects; other browsers
// don't care
// don't care
if
(
jQuery
.
support
.
deleteExpando
||
cache
!=
window
)
{
// Ensure that this id actually exists in `cache` #10080
if
(
cache
[
id
]
&&
(
jQuery
.
support
.
deleteExpando
||
cache
!=
window
)
)
{
delete
cache
[
id
];
delete
cache
[
id
];
}
else
{
}
else
{
cache
[
id
]
=
null
;
cache
[
id
]
=
null
;
...
...
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