diff options
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 62 |
1 files changed, 31 insertions, 31 deletions
@@ -156,41 +156,41 @@ module.exports = function( grunt ) { api: file.read( files[0] ), src: file.read( files[1] ) }, - compiled, parts; + compiled, parts; - /** + /** - sizzle-jquery.js -> sizzle between "EXPOSE" blocks, - replace define & window.Sizzle assignment + sizzle-jquery.js -> sizzle between "EXPOSE" blocks, + replace define & window.Sizzle assignment - // EXPOSE - if ( typeof define === "function" && define.amd ) { - define(function() { return Sizzle; }); - } else { - window.Sizzle = Sizzle; - } - // EXPOSE - - Becomes... - - Sizzle.attr = jQuery.attr; - jQuery.find = Sizzle; - jQuery.expr = Sizzle.selectors; - jQuery.expr[":"] = jQuery.expr.pseudos; - jQuery.unique = Sizzle.uniqueSort; - jQuery.text = Sizzle.getText; - jQuery.isXMLDoc = Sizzle.isXML; - jQuery.contains = Sizzle.contains; - - */ - - // Break into 3 pieces - parts = sizzle.src.split("// EXPOSE"); - // Replace the if/else block with api - parts[1] = sizzle.api; - // Rejoin the pieces - compiled = parts.join(""); + // EXPOSE + if ( typeof define === "function" && define.amd ) { + define(function() { return Sizzle; }); + } else { + window.Sizzle = Sizzle; + } + // EXPOSE + + Becomes... + + Sizzle.attr = jQuery.attr; + jQuery.find = Sizzle; + jQuery.expr = Sizzle.selectors; + jQuery.expr[":"] = jQuery.expr.pseudos; + jQuery.unique = Sizzle.uniqueSort; + jQuery.text = Sizzle.getText; + jQuery.isXMLDoc = Sizzle.isXML; + jQuery.contains = Sizzle.contains; + + */ + + // Break into 3 pieces + parts = sizzle.src.split("// EXPOSE"); + // Replace the if/else block with api + parts[1] = sizzle.api; + // Rejoin the pieces + compiled = parts.join(""); verbose.write("Injected sizzle-jquery.js into sizzle.js"); |