diff --git a/lib/scripts/script.js b/lib/scripts/script.js index fc8cb609610780adc7b6b74ae8b0a7d4b7e9d932..24473c2e6d9e82c02f3d4d2ec488aa562e315d5f 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -14,10 +14,12 @@ if ('function' === typeof jQuery && 'function' === typeof jQuery.noConflict) { */ function DEPRECATED(msg){ if(!window.console) return; - if(!arguments.callee) return; + if(!msg) msg = ''; - var func = arguments.callee.caller.name; - var line = 'DEPRECATED function call '+func+'(). '+msg; + var func; + if(arguments.callee) func = arguments.callee.caller.name; + if(func) func = ' '+func+'()'; + var line = 'DEPRECATED function call'+func+'. '+msg; if(console.warn){ console.warn(line);