function Widget() { this.element = null; this.update = function() { var s = ""; for (var key in ronin.modules){ s += ronin.modules[key].widget(); } s += ""+ronin.cursor.mode.widget_cursor()+""; this.element.innerHTML = s; } }