lib/packages/core.js
function() {

		this.init && this.init();

		// focus manager must be initialized before any widgets are in DOM, so it could receive the focus event
		// which can be fired after insertion
		Lava.schema.focus_manager.IS_ENABLED && this.focus_manager && this.focus_manager.enable();

		var body = document.body,
			app_class = Firestorm.Element.getProperty(body, 'lava-app'),
			bootstrap_targets,
			i = 0,
			count;

		if (app_class != null) {

			this._elementToWidget(body);

		} else {

			bootstrap_targets = Firestorm.selectElements('script[type="lava/app"],lava-app');
			for (count = bootstrap_targets.length; i < count; i++) {

				if (Firestorm.Element.getTagName(bootstrap_targets[i]) == 'script') {
					this._scriptToWidget(bootstrap_targets[i]);
				} else {
					this._elementToWidget(bootstrap_targets[i]);
				}

			}

		}

		Lava.schema.popover_manager.IS_ENABLED && this.popover_manager && this.popover_manager.enable();

	}
function() {

		this.init && this.init();

		// focus manager must be initialized before any widgets are in DOM, so it could receive the focus event
		// which can be fired after insertion
		Lava.schema.focus_manager.IS_ENABLED && this.focus_manager && this.focus_manager.enable();

		var body = document.body,
			app_class = Firestorm.Element.getProperty(body, 'lava-app'),
			bootstrap_targets,
			i = 0,
			count;

		if (app_class != null) {

			this._elementToWidget(body);

		} else {

			bootstrap_targets = Firestorm.selectElements('script[type="lava/app"],lava-app');
			for (count = bootstrap_targets.length; i < count; i++) {

				if (Firestorm.Element.getTagName(bootstrap_targets[i]) == 'script') {
					this._scriptToWidget(bootstrap_targets[i]);
				} else {
					this._elementToWidget(bootstrap_targets[i]);
				}

			}

		}

		Lava.schema.popover_manager.IS_ENABLED && this.popover_manager && this.popover_manager.enable();

	}
function ( ) { this . init && this . init ( ) ; // focus manager must be initialized before any widgets are in DOM, so it could receive the focus event // which can be fired after insertion Lava . schema . focus_manager . IS_ENABLED && this . focus_manager && this . focus_manager . enable ( ) ; var body = document . body , app_class = Firestorm . Element . getProperty ( body , 'lava-app' ) , bootstrap_targets , i = 0 , count ; if ( app_class != null ) { this . _elementToWidget ( body ) ; } else { bootstrap_targets = Firestorm . selectElements ( 'script[type="lava/app"],lava-app' ) ; for ( count = bootstrap_targets . length ; i < count ; i ++ ) { if ( Firestorm . Element . getTagName ( bootstrap_targets [ i ] ) == 'script' ) { this . _scriptToWidget ( bootstrap_targets [ i ] ) ; } else { this . _elementToWidget ( bootstrap_targets [ i ] ) ; } } } Lava . schema . popover_manager . IS_ENABLED && this . popover_manager && this . popover_manager . enable ( ) ; }
Parse the page &lt;body&gt; or special "lava-app" regions in the page and replace them with widgets
Parse the page &lt ; body&gt ; or special lava - app regions in the page and replace them with widgets