Permalink
Browse files

Cleanup.

  • Loading branch information...
mbebenita committed Jul 26, 2012
1 parent 5b56f0e commit e75e02f71aa35151450f7768e1f828f6c9c2ed68
Showing with 0 additions and 60 deletions.
  1. +0 −60 src/jc.html
View
@@ -1,60 +0,0 @@
-<html>
- <head>
- <title>JS*</title>
- </head>
- <script src="util.js"></script>
- <script>
- print = function (x) {
- console.info(x);
- }
- var options = new OptionSet("option(s)");
-
- </script>
- <script src="vendor/jquery-1.6.4.js"></script>
- <script src="esprima.js"></script>
- <script src="escodegen.js"></script>
- <script src="compiler.js"></script>
- <body>
- <script>
-
- var FileReader = (function fileReader() {
-
- function constructor(url, responseType) {
- this.url = url;
- this.responseType = responseType || "arraybuffer";
- }
-
- constructor.prototype = {
- readAll: function(progress, complete) {
- var xhr = new XMLHttpRequest();
- var async = true;
- xhr.open("GET", this.url, async);
- xhr.responseType = this.responseType;
- if (progress) {
- xhr.onprogress = function (event) {
- progress(xhr.response, event.loaded, event.total);
- };
- }
- xhr.onreadystatechange = function (event) {
- if (xhr.readyState === 4) {
- complete(xhr.response);
- }
- }
- xhr.setRequestHeader("If-Modified-Since", "Fri, 01 Jan 1960 00:00:00 GMT"); // no-cache
- xhr.send(null);
- }
- };
- return constructor;
-})();
-
-
- new FileReader("tests/simple.jc", "text").readAll(null, function (source) {
- var node = esprima.parse(source);
- compile(node);
-
- print (escodegen.generate(node, {base: "", indent: " "}));
-
- });
- </script>
- </body>
-</html>

0 comments on commit e75e02f

Please sign in to comment.