dist/f2.basic.js
function(appConfig) {

		jQuery(appConfig.root).on('click', '.' + F2.Constants.Css.APP_VIEW_TRIGGER + '[' + F2.Constants.Views.DATA_ATTRIBUTE + ']', function(event) {

			event.preventDefault();

			var view = jQuery(this).attr(F2.Constants.Views.DATA_ATTRIBUTE).toLowerCase();

			// handle the special REMOVE view
			if (view == F2.Constants.Views.REMOVE) {
				F2.removeApp(appConfig.instanceId);
			}
			else {
				appConfig.ui.Views.change(view);
			}
		});
	}
function(appConfig) {

		jQuery(appConfig.root).on('click', '.' + F2.Constants.Css.APP_VIEW_TRIGGER + '[' + F2.Constants.Views.DATA_ATTRIBUTE + ']', function(event) {

			event.preventDefault();

			var view = jQuery(this).attr(F2.Constants.Views.DATA_ATTRIBUTE).toLowerCase();

			// handle the special REMOVE view
			if (view == F2.Constants.Views.REMOVE) {
				F2.removeApp(appConfig.instanceId);
			}
			else {
				appConfig.ui.Views.change(view);
			}
		});
	}
function ( appConfig ) { jQuery ( appConfig . root ) . on ( 'click' , '.' + F2 . Constants . Css . APP_VIEW_TRIGGER + '[' + F2 . Constants . Views . DATA_ATTRIBUTE + ']' , function ( event ) { event . preventDefault ( ) ; var view = jQuery ( this ) . attr ( F2 . Constants . Views . DATA_ATTRIBUTE ) . toLowerCase ( ) ; // handle the special REMOVE view if ( view == F2 . Constants . Views . REMOVE ) { F2 . removeApp ( appConfig . instanceId ) ; } else { appConfig . ui . Views . change ( view ) ; } } ) ; }
Attach app events
@method _initAppEvents
@private
Attach app events