From e1f1363708d788818131dbd17c47e6ad31af2a85 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 27 Jul 2010 10:57:42 +0800 Subject: [PATCH] Roo.js --- Roo.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.2