浏览代码

Remove mootools-more references.

Joel Martin 15 年之前
父节点
当前提交
07f6ca751d
共有 3 个文件被更改,包括 2 次插入4 次删除
  1. 0 1
      canvas.html
  2. 2 2
      include/util.js
  3. 0 1
      prime.html

+ 0 - 1
canvas.html

@@ -9,7 +9,6 @@
     </body>
 
     <script src="include/mootools.js"></script>
-    <script src="include/mootools-more.js"></script>
     <script src="include/util.js"></script>
     <script src="canvas.js"></script>
 

+ 2 - 2
include/util.js

@@ -4,7 +4,7 @@ if ((!window.console) || (! /__debug__$/i.test(document.location.href))) {
   window.console.log = function(message) {}; 
 }
 
-function dirObj(obj, parent, depth) {
+function dirObj(obj, depth, parent) {
     var msg = "";
     var val = "";
     if (! depth) { depth=2; }
@@ -14,7 +14,7 @@ function dirObj(obj, parent, depth) {
     for (var i in obj) {
         if ((depth > 1) && (typeof obj[i] == "object")) { 
             // Recurse attributes that are objects
-            msg += dirObj(obj[i], parent + "." + i, depth-1);
+            msg += dirObj(obj[i], depth-1, parent + "." + i);
         } else {
             val = new String(obj[i]).replace("\n", " ");
             if (val.length > 30) {

+ 0 - 1
prime.html

@@ -12,7 +12,6 @@
   Log:<br>
   <textarea id='debug' style="font-size: 9;" cols=80 rows=25></textarea>
   <script src="include/mootools.js"></script>
-  <script src="include/mootools-more.js"></script>
   <script>
     function debug(str) {
         cell = $('debug');