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
6618ff0b
Commit
6618ff0b
authored
Jan 15, 2010
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some dead code from buildFragment. Thanks to Sean Catchpole for the suggestion.
parent
199a7211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
manipulation.js
src/manipulation.js
+1
-2
No files found.
src/manipulation.js
View file @
6618ff0b
...
@@ -322,7 +322,7 @@ function cloneCopyEvent(orig, ret) {
...
@@ -322,7 +322,7 @@ function cloneCopyEvent(orig, ret) {
}
}
function
buildFragment
(
args
,
nodes
,
scripts
)
{
function
buildFragment
(
args
,
nodes
,
scripts
)
{
var
fragment
,
cacheable
,
cache
d
,
cache
results
,
doc
;
var
fragment
,
cacheable
,
cacheresults
,
doc
;
if
(
args
.
length
===
1
&&
typeof
args
[
0
]
===
"string"
&&
args
[
0
].
length
<
512
&&
args
[
0
].
indexOf
(
"<option"
)
<
0
)
{
if
(
args
.
length
===
1
&&
typeof
args
[
0
]
===
"string"
&&
args
[
0
].
length
<
512
&&
args
[
0
].
indexOf
(
"<option"
)
<
0
)
{
cacheable
=
true
;
cacheable
=
true
;
...
@@ -331,7 +331,6 @@ function buildFragment( args, nodes, scripts ) {
...
@@ -331,7 +331,6 @@ function buildFragment( args, nodes, scripts ) {
if
(
cacheresults
!==
1
)
{
if
(
cacheresults
!==
1
)
{
fragment
=
cacheresults
;
fragment
=
cacheresults
;
}
}
cached
=
true
;
}
}
}
}
...
...
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