]> source.dussan.org Git - jquery.git/commitdiff
Build: use hard-coded path to sizzle in selector-sizzle
authorTimmy Willison <timmywillisn@gmail.com>
Wed, 10 Feb 2016 21:47:25 +0000 (13:47 -0800)
committerTimmy Willison <timmywillisn@gmail.com>
Wed, 10 Feb 2016 21:47:25 +0000 (13:47 -0800)
Fixes gh-2898

build/tasks/build.js
src/selector-sizzle.js
test/jquery.js

index c9f1daeb8f74c420d496760e5cba250facd7a7dc..1f1719a48c87d505efa3a68062d641c8bdc8c74e 100644 (file)
@@ -31,9 +31,6 @@ module.exports = function( grunt ) {
                                startFile: "src/intro.js",
                                endFile: [ "src/exports/global.js", "src/outro.js" ]
                        },
-                       paths: {
-                               sizzle: "../external/sizzle/dist/sizzle"
-                       },
                        rawText: {},
                        onBuildWrite: convert
                };
@@ -58,7 +55,7 @@ module.exports = function( grunt ) {
                                .replace( rdefineEnd, "" );
 
                // Sizzle treatment
-               } else if ( /^sizzle$/.test( name ) ) {
+               } else if ( /\/sizzle$/.test( name ) ) {
                        contents = "var Sizzle =\n" + contents
 
                                // Remove EXPOSE lines from Sizzle
index 462cd240a0951dfe26d9c3c2616d008df6979a44..678df09759cb237e11c8dedbb226d82ad9be06e8 100644 (file)
@@ -1,6 +1,6 @@
 define( [
        "./core",
-       "sizzle"
+       "../external/sizzle/dist/sizzle"
 ], function( jQuery, Sizzle ) {
 
 jQuery.find = Sizzle;
index 233e696d9df8354f1ff3d1899dc43b68034b54c8..8119d3fc042d342b6c8bca3c6002c009121d25ac 100644 (file)
        // This detection allows AMD tests to be run in an iframe
        if ( QUnit.urlParams.amd && window.QUnit ) {
                require.config( {
-                       baseUrl: path,
-                       paths: {
-                               sizzle: "external/sizzle/dist/sizzle"
-                       }
+                       baseUrl: path
                } );
                src = "src/jquery";