lib/packages/parsers.js
function(widget_config, raw_directive, config_property_name) {

		if (Lava.schema.DEBUG && !('attributes' in raw_directive)) Lava.t("option: missing attributes");
		if (Lava.schema.DEBUG && (!raw_directive.content || raw_directive.content.length != 1)) Lava.t("Malformed property: " + raw_directive.attributes.name);
		Lava.store(widget_config, config_property_name, raw_directive.attributes.name, raw_directive.content[0]);

	}
function(widget_config, raw_directive, config_property_name) {

		if (Lava.schema.DEBUG && !('attributes' in raw_directive)) Lava.t("option: missing attributes");
		if (Lava.schema.DEBUG && (!raw_directive.content || raw_directive.content.length != 1)) Lava.t("Malformed property: " + raw_directive.attributes.name);
		Lava.store(widget_config, config_property_name, raw_directive.attributes.name, raw_directive.content[0]);

	}
function ( widget_config , raw_directive , config_property_name ) { if ( Lava . schema . DEBUG && ! ( 'attributes' in raw_directive ) ) Lava . t ( "option: missing attributes" ) ; if ( Lava . schema . DEBUG && ( ! raw_directive . content || raw_directive . content . length != 1 ) ) Lava . t ( "Malformed property: " + raw_directive . attributes . name ) ; Lava . store ( widget_config , config_property_name , raw_directive . attributes . name , raw_directive . content [ 0 ] ) ; }
Helper method for widget directives
@param {_cWidget} widget_config
@param {_cRawDirective} raw_directive
@param {string} config_property_name
Helper method for widget directives