Removed some dead code from buildFragment. Thanks to Sean Catchpole for the suggestion.
This commit is contained in:
parent
199a721103
commit
6618ff0b0a
|
@ -322,7 +322,7 @@ function cloneCopyEvent(orig, ret) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildFragment( args, nodes, scripts ) {
|
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 ) {
|
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 ) {
|
||||||
if ( cacheresults !== 1 ) {
|
if ( cacheresults !== 1 ) {
|
||||||
fragment = cacheresults;
|
fragment = cacheresults;
|
||||||
}
|
}
|
||||||
cached = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue