client/client.js
function(err){
				if(err){
					if(cb.length === 1){
						console.log('cb has no error handling, throwing: ' + cb)
						throw err
					}
					//console.log('getView error in client: ' + err)
					//console.log('view "' + type + '" load failed with error: ' + err)
					cb(err)
					return
				}
				var viewId = pu.viewIdStr(st.code,params,st)//':'+st.code+newViewSequencer.paramsStr(params)//JSON.stringify(params)
				//console.log('calling back with view: ' + viewId + '+++++++++++++++++++++')
				api.onEdit(changeListener)
				/*
				if(cb.length === 1){
					cb(api.getView(viewId, historicalKey))
				}else{*/
				/*if(historicalKey){
					cb(undefined, api.getView(viewId, historicalKey))
				}else{*/
				try{
					var view = api.getView(viewId)
				}catch(e){
					console.log('ERROR during api.getView')
					console.log(e.stack)
					return
				}
				
				try{
					cb(undefined, view)//, historicalKey))
				}catch(e){
					console.log('ERROR during client callback')
					console.log(e.stack)
				}
				//}
				//}
			}
function(err){
				if(err){
					if(cb.length === 1){
						console.log('cb has no error handling, throwing: ' + cb)
						throw err
					}
					//console.log('getView error in client: ' + err)
					//console.log('view "' + type + '" load failed with error: ' + err)
					cb(err)
					return
				}
				var viewId = pu.viewIdStr(st.code,params,st)//':'+st.code+newViewSequencer.paramsStr(params)//JSON.stringify(params)
				//console.log('calling back with view: ' + viewId + '+++++++++++++++++++++')
				api.onEdit(changeListener)
				/*
				if(cb.length === 1){
					cb(api.getView(viewId, historicalKey))
				}else{*/
				/*if(historicalKey){
					cb(undefined, api.getView(viewId, historicalKey))
				}else{*/
				try{
					var view = api.getView(viewId)
				}catch(e){
					console.log('ERROR during api.getView')
					console.log(e.stack)
					return
				}
				
				try{
					cb(undefined, view)//, historicalKey))
				}catch(e){
					console.log('ERROR during client callback')
					console.log(e.stack)
				}
				//}
				//}
			}
function ( err ) { if ( err ) { if ( cb . length === 1 ) { console . log ( 'cb has no error handling, throwing: ' + cb ) throw err } //console.log('getView error in client: ' + err) //console.log('view "' + type + '" load failed with error: ' + err) cb ( err ) return } var viewId = pu . viewIdStr ( st . code , params , st ) //':'+st.code+newViewSequencer.paramsStr(params)//JSON.stringify(params) //console.log('calling back with view: ' + viewId + '+++++++++++++++++++++') api . onEdit ( changeListener ) /*
				if(cb.length === 1){
					cb(api.getView(viewId, historicalKey))
				}else{*/ /*if(historicalKey){
					cb(undefined, api.getView(viewId, historicalKey))
				}else{*/ try { var view = api . getView ( viewId ) } catch ( e ) { console . log ( 'ERROR during api.getView' ) console . log ( e . stack ) return } try { cb ( undefined , view ) //, historicalKey)) } catch ( e ) { console . log ( 'ERROR during client callback' ) console . log ( e . stack ) } //} //} }
/*historicalKey,
/ * historicalKey