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
f0999076
Commit
f0999076
authored
Feb 12, 2011
by
David Murdoch
Committed by
Anton M
Feb 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unexpose $.support._scriptEval as it's not needed. Use a private var instead. Fixes #8200.
parent
d4790116
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
support.js
src/support.js
+5
-5
No files found.
src/support.js
View file @
f0999076
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
deleteExpando
:
true
,
deleteExpando
:
true
,
optDisabled
:
false
,
optDisabled
:
false
,
checkClone
:
false
,
checkClone
:
false
,
_scriptEval
:
null
,
noCloneEvent
:
true
,
noCloneEvent
:
true
,
boxModel
:
null
,
boxModel
:
null
,
inlineBlockNeedsLayout
:
false
,
inlineBlockNeedsLayout
:
false
,
...
@@ -74,8 +73,9 @@
...
@@ -74,8 +73,9 @@
select
.
disabled
=
true
;
select
.
disabled
=
true
;
jQuery
.
support
.
optDisabled
=
!
opt
.
disabled
;
jQuery
.
support
.
optDisabled
=
!
opt
.
disabled
;
var
_scriptEval
=
null
;
jQuery
.
support
.
scriptEval
=
function
()
{
jQuery
.
support
.
scriptEval
=
function
()
{
if
(
jQuery
.
support
.
_scriptEval
===
null
)
{
if
(
_scriptEval
===
null
)
{
var
root
=
document
.
documentElement
,
var
root
=
document
.
documentElement
,
script
=
document
.
createElement
(
"script"
),
script
=
document
.
createElement
(
"script"
),
id
=
"script"
+
jQuery
.
now
();
id
=
"script"
+
jQuery
.
now
();
...
@@ -91,10 +91,10 @@
...
@@ -91,10 +91,10 @@
// tag with appendChild/createTextNode
// tag with appendChild/createTextNode
// (IE doesn't support this, fails, and uses .text instead)
// (IE doesn't support this, fails, and uses .text instead)
if
(
window
[
id
]
)
{
if
(
window
[
id
]
)
{
jQuery
.
support
.
_scriptEval
=
true
;
_scriptEval
=
true
;
delete
window
[
id
];
delete
window
[
id
];
}
else
{
}
else
{
jQuery
.
support
.
_scriptEval
=
false
;
_scriptEval
=
false
;
}
}
root
.
removeChild
(
script
);
root
.
removeChild
(
script
);
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
root
=
script
=
id
=
null
;
root
=
script
=
id
=
null
;
}
}
return
jQuery
.
support
.
_scriptEval
;
return
_scriptEval
;
};
};
// Test to see if it's possible to delete an expando from an element
// Test to see if it's possible to delete an expando from an element
...
...
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