lib/packages/core.js
function(widget_title, widget_config) {

		if (!Lava.schema.widget.ALLOW_REDEFINITION && (widget_title in this.widgets))
			Lava.t("storeWidgetSchema: widget is already defined: " + widget_title);

		this.widgets[widget_title] = widget_config;

		if (('sugar' in widget_config) && widget_config.sugar.tag_name) {

			this.sugar_map[widget_config.sugar.tag_name] = {widget_title: widget_title};

		}

	}
function(widget_title, widget_config) {

		if (!Lava.schema.widget.ALLOW_REDEFINITION && (widget_title in this.widgets))
			Lava.t("storeWidgetSchema: widget is already defined: " + widget_title);

		this.widgets[widget_title] = widget_config;

		if (('sugar' in widget_config) && widget_config.sugar.tag_name) {

			this.sugar_map[widget_config.sugar.tag_name] = {widget_title: widget_title};

		}

	}
function ( widget_title , widget_config ) { if ( ! Lava . schema . widget . ALLOW_REDEFINITION && ( widget_title in this . widgets ) ) Lava . t ( "storeWidgetSchema: widget is already defined: " + widget_title ) ; this . widgets [ widget_title ] = widget_config ; if ( ( 'sugar' in widget_config ) && widget_config . sugar . tag_name ) { this . sugar_map [ widget_config . sugar . tag_name ] = { widget_title : widget_title } ; } }
Register a global widget config
@param {string} widget_title Title for new global widget
@param {_cWidget} widget_config
Register a global widget config