From 8d94ed91e47f68f742b6c282c8de40eb5fa8e140 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 7 Mar 2012 15:28:00 -0500 Subject: [PATCH] Revert "No more php/js logic duplication..." on a hunch. TestSwarm hasn't been happy since this commit, and everyone deserves to be happy. This reverts commit 318d47b730769f538dbc24800b9ad67ff8e73ea9. --- test/data/include_js.php | 162 +++++++++++++++++++++++++-------------- 1 file changed, 103 insertions(+), 59 deletions(-) diff --git a/test/data/include_js.php b/test/data/include_js.php index ee9c71a5d..23207a9d9 100644 --- a/test/data/include_js.php +++ b/test/data/include_js.php @@ -1,62 +1,106 @@ -(function() { - -window.hasPHP = false /* */; - -if ( !window.top.jQueryIncludes ) { - - window.top.jQueryIncludes = (function() { - - var location = window.top.document.location.href, - baseURL = location.replace( /\/test\/.*/, "/"), - version = /(?:&|\?)jquery=([^&]+?)(?:$|&)/.exec( location ), - includes, i; - - if ( version ) { - version = version[ 1 ]; - if( version === "min" ) { - includes = [ baseURL + "dist/jquery.min.js" ]; - } else if( version === "dist" ) { - includes = [ baseURL + "dist/jquery.js" ]; - } else { - includes = [ "http://code.jquery.com/jquery-" + version + ".js" ]; - } - } else { - includes = [ - "core", - "callbacks", - "deferred", - "support", - "data", - "queue", - "attributes", - "event", - "sizzle/sizzle", - "sizzle-jquery", - "traversing", - "manipulation", - "css", - "ajax", - "ajax/jsonp", - "ajax/script", - "ajax/xhr", - "effects", - "offset", - "dimensions", - "exports" - ]; - for ( i = includes.length; i--; ) { - includes[ i ] = baseURL + "src/" + includes[ i ] + ".js"; - } - } - - for ( i = includes.length; i--; ) { - includes[ i ] = "