From 5943f1d7ffef41cc1a99bffe189f6d111fbccfd0 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 10 Feb 2016 13:47:25 -0800 Subject: [PATCH] Build: use hard-coded path to sizzle in selector-sizzle Fixes gh-2898 --- build/tasks/build.js | 5 +---- src/selector-sizzle.js | 2 +- test/jquery.js | 5 +---- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index c9f1daeb8..1f1719a48 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -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 diff --git a/src/selector-sizzle.js b/src/selector-sizzle.js index 462cd240a..678df0975 100644 --- a/src/selector-sizzle.js +++ b/src/selector-sizzle.js @@ -1,6 +1,6 @@ define( [ "./core", - "sizzle" + "../external/sizzle/dist/sizzle" ], function( jQuery, Sizzle ) { jQuery.find = Sizzle; diff --git a/test/jquery.js b/test/jquery.js index 233e696d9..8119d3fc0 100644 --- a/test/jquery.js +++ b/test/jquery.js @@ -18,10 +18,7 @@ // 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"; -- 2.39.5