Roo.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 27 Jul 2010 02:57:42 +0000 (10:57 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 27 Jul 2010 02:57:42 +0000 (10:57 +0800)
Roo.js

diff --git a/Roo.js b/Roo.js
index 32a317a..5457135 100644 (file)
--- a/Roo.js
+++ b/Roo.js
@@ -85,6 +85,12 @@ Roo.apply = function(o, c, defaults){
          * @type Boolean
          */
         isReady : false,
+        /**
+         * Turn on debugging output (currently only the factory uses this)
+         * @type Boolean
+         */
+        
+        debug: false,
 
         /**
          * True to automatically uncache orphaned Roo.Elements periodically (defaults to true)
@@ -297,7 +303,7 @@ Roo.factory(conf, Roo.data);
                 return c;
             }
             if (ns[c.xtype]) {
-                if (Roo.debug) console.log("Roo.Factory(" + c.xtype + ")");
+                if (Roo.debug) Roo.log("Roo.Factory(" + c.xtype + ")");
                 var ret = new ns[c.xtype](c);
                 ret.xns = false;
                 return ret;