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
2084e017
Commit
2084e017
authored
Jul 23, 2010
by
Dave Reed
Committed by
jeresig
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issues discussed in
9faab0b7
. Goes towards fixing #6808.
parent
266facc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
data.js
src/data.js
+6
-4
No files found.
src/data.js
View file @
2084e017
...
...
@@ -27,7 +27,8 @@ jQuery.extend({
elem
;
var
id
=
elem
[
jQuery
.
expando
],
cache
=
jQuery
.
cache
,
thisCache
,
isNode
=
elem
.
nodeType
;
isNode
=
elem
.
nodeType
,
store
;
if
(
!
id
&&
typeof
name
===
"string"
&&
data
===
undefined
)
{
return
;
...
...
@@ -49,8 +50,9 @@ jQuery.extend({
if
(
isNode
)
{
cache
[
id
]
=
jQuery
.
extend
(
true
,
{},
name
);
}
else
{
store
=
jQuery
.
extend
(
true
,
{},
name
);
cache
[
id
]
=
function
()
{
return
jQuery
.
extend
(
true
,
{},
name
)
;
return
store
;
};
}
...
...
@@ -58,7 +60,7 @@ jQuery.extend({
if
(
isNode
)
{
cache
[
id
]
=
{};
}
else
{
var
store
=
{};
store
=
{};
cache
[
id
]
=
function
()
{
return
store
;
};
...
...
@@ -66,7 +68,7 @@ jQuery.extend({
}
thisCache
=
isNode
?
cache
[
id
]
:
cache
[
id
]();
thisCache
=
isNode
?
cache
[
id
]
:
cache
[
id
]();
// Prevent overriding the named cache with undefined values
if
(
data
!==
undefined
)
{
...
...
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