Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 4919f3dad9f2c5e31bd194b722a3672b95a99e06
Author: Jon Buckley <jon@jbuckley.ca>
Date:   Wed May 11 16:48:57 2011 -0400

    Fix make package-sketch so that it works with the redefined globals

commit 3636b59
Author: David Humphrey <david.humphrey@senecac.on.ca>
Date:   Wed May 11 15:36:38 2011 -0400

    Better minification for window, document, Math [ticket 494].
  • Loading branch information
annasob committed May 13, 2011
1 parent 61aebca commit 3a05421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ package-sketch:
echo "function ${SKETCHRUN}(canvas) {" > ${SKETCHOUTPUT}.src
${JSSHELL} -f ${TOOLSDIR}/jspreprocess.js -e "PARSER=false;preprocess();" < processing.js >> ${SKETCHOUTPUT}.src
echo "return new Processing(canvas," >> ${SKETCHOUTPUT}.src
${JSSHELL} -f processing.js -f ${TOOLSDIR}/jscompile.js < ${SKETCHINPUT} >> ${SKETCHOUTPUT}.src
${JSSHELL} -f ${TOOLSDIR}/fake-dom.js -f processing.js -f ${TOOLSDIR}/jscompile.js < ${SKETCHINPUT} >> ${SKETCHOUTPUT}.src
echo "); } window['${SKETCHRUN}']=${SKETCHRUN};" >> ${SKETCHOUTPUT}.src
java -jar ${CLOSUREJAR} --js=${SKETCHOUTPUT}.src --js_output_file=${SKETCHOUTPUT} --compilation_level ADVANCED_OPTIMIZATIONS
rm ${SKETCHOUTPUT}.src
Expand Down
6 changes: 2 additions & 4 deletions processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

*/

(function() {

var undef; // intentionally left undefined
(function(window, document, Math, undef) {

var ajax = function(url) {
var xhr = new XMLHttpRequest();
Expand Down Expand Up @@ -19371,4 +19369,4 @@
// DOM is not found
this.Processing = Processing;
}
}());
}(window, window.document, Math));

0 comments on commit 3a05421

Please sign in to comment.