aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-01-15 17:46:33 -0500
committerJohn Resig <jeresig@gmail.com>2010-01-15 17:46:33 -0500
commit6618ff0b0abe38a0914d8afe0a2b271c977adf6b (patch)
tree3d984f7fdd21b922ebe0ece401dec1138ca22ae5 /src/manipulation.js
parent199a721103b17c18dea7a9abaeb79866ef4a7f51 (diff)
downloadjquery-6618ff0b0abe38a0914d8afe0a2b271c977adf6b.tar.gz
jquery-6618ff0b0abe38a0914d8afe0a2b271c977adf6b.zip
Removed some dead code from buildFragment. Thanks to Sean Catchpole for the suggestion.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 742ec2543..59edcbcef 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -322,7 +322,7 @@ function cloneCopyEvent(orig, ret) {
}
function buildFragment( args, nodes, scripts ) {
- var fragment, cacheable, cached, cacheresults, doc;
+ var fragment, cacheable, cacheresults, doc;
if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && args[0].indexOf("<option") < 0 ) {
cacheable = true;
@@ -331,7 +331,6 @@ function buildFragment( args, nodes, scripts ) {
if ( cacheresults !== 1 ) {
fragment = cacheresults;
}
- cached = true;
}
}