From: Alan Knowles Date: Tue, 27 Jul 2010 02:57:42 +0000 (+0800) Subject: Roo.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=e1f1363708d788818131dbd17c47e6ad31af2a85 Roo.js --- diff --git a/Roo.js b/Roo.js index 32a317aff0..5457135226 100644 --- 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;