dist/f2.debug.js
function(instanceId) {

			if (!_isInit()) {
				F2.log('F2.init() must be called before F2.removeApp()');
				return;
			}

			if (_apps[instanceId]) {
				F2.AppHandlers.__trigger(
					_sAppHandlerToken,
					F2.Constants.AppHandlers.APP_DESTROY_BEFORE,
					_apps[instanceId] // the app instance
				);

				F2.AppHandlers.__trigger(
					_sAppHandlerToken,
					F2.Constants.AppHandlers.APP_DESTROY,
					_apps[instanceId] // the app instance
				);

				F2.AppHandlers.__trigger(
					_sAppHandlerToken,
					F2.Constants.AppHandlers.APP_DESTROY_AFTER,
					_apps[instanceId] // the app instance
				);

				if (_apps[instanceId].config.isSecure) {
					F2.Rpc.destroy(instanceId);
				}

				delete _apps[instanceId];
			}
		}
function(instanceId) {

			if (!_isInit()) {
				F2.log('F2.init() must be called before F2.removeApp()');
				return;
			}

			if (_apps[instanceId]) {
				F2.AppHandlers.__trigger(
					_sAppHandlerToken,
					F2.Constants.AppHandlers.APP_DESTROY_BEFORE,
					_apps[instanceId] // the app instance
				);

				F2.AppHandlers.__trigger(
					_sAppHandlerToken,
					F2.Constants.AppHandlers.APP_DESTROY,
					_apps[instanceId] // the app instance
				);

				F2.AppHandlers.__trigger(
					_sAppHandlerToken,
					F2.Constants.AppHandlers.APP_DESTROY_AFTER,
					_apps[instanceId] // the app instance
				);

				if (_apps[instanceId].config.isSecure) {
					F2.Rpc.destroy(instanceId);
				}

				delete _apps[instanceId];
			}
		}
function ( instanceId ) { if ( ! _isInit ( ) ) { F2 . log ( 'F2.init() must be called before F2.removeApp()' ) ; return ; } if ( _apps [ instanceId ] ) { F2 . AppHandlers . __trigger ( _sAppHandlerToken , F2 . Constants . AppHandlers . APP_DESTROY_BEFORE , _apps [ instanceId ] // the app instance ) ; F2 . AppHandlers . __trigger ( _sAppHandlerToken , F2 . Constants . AppHandlers . APP_DESTROY , _apps [ instanceId ] // the app instance ) ; F2 . AppHandlers . __trigger ( _sAppHandlerToken , F2 . Constants . AppHandlers . APP_DESTROY_AFTER , _apps [ instanceId ] // the app instance ) ; if ( _apps [ instanceId ] . config . isSecure ) { F2 . Rpc . destroy ( instanceId ) ; } delete _apps [ instanceId ] ; } }
Removes an app from the container
@method removeApp
@param {string} instanceId The app's instanceId
Removes an app from the container