git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b5363b
)
Fix for bug #983 (Packed jQuery doesn't have a license at the top of the file.)
author
John Resig
<jeresig@gmail.com>
Sun, 20 May 2007 16:42:42 +0000
(16:42 +0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 20 May 2007 16:42:42 +0000
(16:42 +0000)
build/build/pack.js
patch
|
blob
|
history
src/intro.js
patch
|
blob
|
history
diff --git
a/build/build/pack.js
b/build/build/pack.js
index
5706a21
..
6a04e72
100644
(file)
--- a/
build/build/pack.js
+++ b/
build/build/pack.js
@@
-12,7
+12,8
@@
var base62 = true;
var shrink = true;
var script = readFile(inFile);
+var header = script.match(/\/\*(.|\n)*?\*\//)[0];
var packer = new Packer;
var packedScript = packer.pack(script, base62, shrink);
-writeFile(outFile, packedScript);
+writeFile(outFile, header + "\n" + packedScript);
diff --git
a/src/intro.js
b/src/intro.js
index
fc373ab
..
9204081
100644
(file)
--- a/
src/intro.js
+++ b/
src/intro.js
@@
-1,2
+1,2
@@
-/* prevent execution of jQuery if included more than once */
+// prevent execution of jQuery if included more than once
if(typeof window.jQuery == "undefined") {