| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,36 @@ |
| 1 |
+/** |
|
| 2 |
+ * $Id$ |
|
| 3 |
+ * |
|
| 4 |
+ * @author Moxiecode |
|
| 5 |
+ * @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved. |
|
| 6 |
+ * |
|
| 7 |
+ * The contents of this file will be wrapped in a class later on. |
|
| 8 |
+ */ |
|
| 9 |
+ |
|
| 10 |
+/**#@+ |
|
| 11 |
+ * @member TinyMCE_Engine |
|
| 12 |
+ * @method |
|
| 13 |
+ */ |
|
| 14 |
+tinyMCE.add(TinyMCE_Engine, {
|
|
| 15 |
+ /** |
|
| 16 |
+ * Debugs the specified message to devkit if it's loaded. |
|
| 17 |
+ * |
|
| 18 |
+ * @param {1..n} Numerous arguments that will be outputed.
|
|
| 19 |
+ */ |
|
| 20 |
+ debug : function() {
|
|
| 21 |
+ var m = "", a, i, l = tinyMCE.log.length; |
|
| 22 |
+ |
|
| 23 |
+ for (i=0, a = this.debug.arguments; i<a.length; i++) {
|
|
| 24 |
+ m += a[i]; |
|
| 25 |
+ |
|
| 26 |
+ if (i<a.length-1) |
|
| 27 |
+ m += ', '; |
|
| 28 |
+ } |
|
| 29 |
+ |
|
| 30 |
+ if (l < 1000) |
|
| 31 |
+ tinyMCE.log[l] = "[debug] " + m; |
|
| 32 |
+ } |
|
| 33 |
+ |
|
| 34 |
+ /**#@-*/ |
|
| 35 |
+}); |
|
| 36 |
+ |