/* Copyright (c) 2004-2006, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ /** * Produce a line of debug output. * Does nothing unless djConfig.isDebug is true. * varargs, joined with ''. * Caller should not supply a trailing "\n". */ dojo.debug = function(){ if (!djConfig.isDebug) { return; } var args = arguments; if(dj_undef("println", dojo.hostenv)){ dojo.raise("dojo.debug not available (yet?)"); } var isJUM = dj_global["jum"] && !dj_global["jum"].isBrowser; var s = [(isJUM ? "": "DEBUG: ")]; for(var i=0;i