lib/packages/parsers.js
function(raw_directive) {

		if (Lava.schema.DEBUG && (!raw_directive.attributes || !raw_directive.attributes['locale'] || !raw_directive.attributes['for']))
			Lava.t("Malformed x:resources definition. 'locale' and 'for' are required");

		Lava.resources.addWidgetResource(
			raw_directive.attributes['for'],
			raw_directive.attributes['locale'],
			this._parseResources(raw_directive, raw_directive.attributes['for'])
		);

	}
function(raw_directive) {

		if (Lava.schema.DEBUG && (!raw_directive.attributes || !raw_directive.attributes['locale'] || !raw_directive.attributes['for']))
			Lava.t("Malformed x:resources definition. 'locale' and 'for' are required");

		Lava.resources.addWidgetResource(
			raw_directive.attributes['for'],
			raw_directive.attributes['locale'],
			this._parseResources(raw_directive, raw_directive.attributes['for'])
		);

	}
function ( raw_directive ) { if ( Lava . schema . DEBUG && ( ! raw_directive . attributes || ! raw_directive . attributes [ 'locale' ] || ! raw_directive . attributes [ 'for' ] ) ) Lava . t ( "Malformed x:resources definition. 'locale' and 'for' are required" ) ; Lava . resources . addWidgetResource ( raw_directive . attributes [ 'for' ] , raw_directive . attributes [ 'locale' ] , this . _parseResources ( raw_directive , raw_directive . attributes [ 'for' ] ) ) ; }
Standalone resources definition for global widget
@param {_cRawDirective} raw_directive
Standalone resources definition for global widget