Another fix for bug #1584, ajaxStop would not be called for a cross-domain request...
[jquery.git] / build / build / min.js
1 load("build/js/jsmin.js", "build/js/writeFile.js");
2
3 // arguments
4 var inFile = arguments[0];
5 var outFile = arguments[1] || inFile.replace(/\.js$/, ".min.js");
6
7 var script = readFile(inFile);
8 var header = script.match(/\/\*(.|\n)*?\*\//)[0];
9 var minifiedScript = jsmin('', script, 3);
10
11 writeFile( outFile, header + minifiedScript );