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

						if (typeof input === 'function') {
							this.on('change', input);
						} else if (typeof input === 'string') {

							if (_appConfig.isSecure && !F2.Rpc.isRemote(_appConfig.instanceId)) {
								F2.Rpc.call(
									_appConfig.instanceId,
									F2.Constants.Sockets.UI_RPC,
									'Views.change',
									[].slice.call(arguments)
								);
							} else if (F2.inArray(input, _appConfig.views)) {
								jQuery('.' + F2.Constants.Css.APP_VIEW, $root)
									.addClass('hide')
									.filter('[data-f2-view="' + input + '"]', $root)
									.removeClass('hide');
								
								_updateHeight();
								_events.emit('change', input);
							}							
						}
					}
function(input) {

						if (typeof input === 'function') {
							this.on('change', input);
						} else if (typeof input === 'string') {

							if (_appConfig.isSecure && !F2.Rpc.isRemote(_appConfig.instanceId)) {
								F2.Rpc.call(
									_appConfig.instanceId,
									F2.Constants.Sockets.UI_RPC,
									'Views.change',
									[].slice.call(arguments)
								);
							} else if (F2.inArray(input, _appConfig.views)) {
								jQuery('.' + F2.Constants.Css.APP_VIEW, $root)
									.addClass('hide')
									.filter('[data-f2-view="' + input + '"]', $root)
									.removeClass('hide');
								
								_updateHeight();
								_events.emit('change', input);
							}							
						}
					}
function ( input ) { if ( typeof input === 'function' ) { this . on ( 'change' , input ) ; } else if ( typeof input === 'string' ) { if ( _appConfig . isSecure && ! F2 . Rpc . isRemote ( _appConfig . instanceId ) ) { F2 . Rpc . call ( _appConfig . instanceId , F2 . Constants . Sockets . UI_RPC , 'Views.change' , [ ] . slice . call ( arguments ) ) ; } else if ( F2 . inArray ( input , _appConfig . views ) ) { jQuery ( '.' + F2 . Constants . Css . APP_VIEW , $root ) . addClass ( 'hide' ) . filter ( '[data-f2-view="' + input + '"]' , $root ) . removeClass ( 'hide' ) ; _updateHeight ( ) ; _events . emit ( 'change' , input ) ; } } }
Change the current view for the app or add an event listener
@method change
@param {string|function} [input] If a string is passed in, the view
will be changed for the app. If a function is passed in, a change
event listener will be added.
@for F2.UI.Views
Change the current view for the app or add an event listener