/* 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 */ dojo.debug = function(/*...*/){ // summary: // Produce a line of debug output. Does nothing unless // djConfig.isDebug is true. Accepts any nubmer of args, joined with // ' ' to produce a single line of debugging output. Caller should not // supply a trailing "\n". 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