}
-// wrapper to call team() after page load
-(function(j) {
- function log(string) {
- if (!mkws.log_level)
- return;
+mkws.log = function(string) {
+ if (!mkws.log_level)
+ return;
- if (typeof console === "undefined" || typeof console.log === "undefined") { /* ARGH!!! old IE */
- return;
- }
+ if (typeof console === "undefined" || typeof console.log === "undefined") { /* ARGH!!! old IE */
+ return;
+ }
- // you need to disable use strict at the top of the file!!!
- if (mkws.log_level >= 3) {
- console.log(arguments.callee.caller);
- } else if (mkws.log_level >= 2) {
- console.log(">>> called from function " + arguments.callee.caller.name + ' <<<');
- }
- console.log(string);
+ // you need to disable use strict at the top of the file!!!
+ if (mkws.log_level >= 3) {
+ console.log(arguments.callee.caller);
+ } else if (mkws.log_level >= 2) {
+ console.log(">>> called from function " + arguments.callee.caller.name + ' <<<');
}
- mkws.log = log;
+ console.log(string);
+};
+
+// wrapper to call team() after page load
+(function(j) {
+ var log = mkws.log;
+
mkws.registerWidgetType = function(name, fn) {
mkws.widgetType2function[name] = fn;
log("registered widget-type '" + name + "'");