Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Like the main repo, use linebreaks for KAthJax JS
Browse files Browse the repository at this point in the history
Debugging errors is much easier when line number errors don't give you
multi-thousand-character lines... (We'll pay a 700-byte size penalty
after gzipping.)
  • Loading branch information
sophiebits committed Jun 24, 2012
1 parent 8c22e70 commit 9dbd045
Show file tree
Hide file tree
Showing 4 changed files with 5,959 additions and 156 deletions.
2 changes: 1 addition & 1 deletion build/kathjax.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
# Pack KAthJax.js and copy to mjdir # Pack KAthJax.js and copy to mjdir


os.mkdir(os.path.join(mjdir, 'config')) os.mkdir(os.path.join(mjdir, 'config'))
os.system('uglifyjs --overwrite --ascii KAthJax.js') os.system('uglifyjs --overwrite --ascii --beautify --indent 0 KAthJax.js')


kathjax_js = open('KAthJax.js', 'r') kathjax_js = open('KAthJax.js', 'r')
md5 = hashlib.md5(kathjax_js.read()).hexdigest() md5 = hashlib.md5(kathjax_js.read()).hexdigest()
Expand Down
2 changes: 1 addition & 1 deletion khan-exercise.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ var Khan = (function() {


moduleDependencies: { moduleDependencies: {
"math": [{ "math": [{
src: urlBase + "utils/MathJax/1.1a/MathJax.js?config=KAthJax-a5c67e8a5046db2ff8dfc2229a228836" src: urlBase + "utils/MathJax/1.1a/MathJax.js?config=KAthJax-62e7a7b628ba168df6b9cd3de8feac38"
}, "raphael"], }, "raphael"],


// Load Raphael locally because IE8 has a problem with the 1.5.2 minified release // Load Raphael locally because IE8 has a problem with the 1.5.2 minified release
Expand Down
Loading

1 comment on commit 9dbd045

@sophiebits
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xymostech review!

Please sign in to comment.