filez/labs/hipstered/js/hipstered.js
/**
* openNewFile
* opens a file, pushes in file array and opens tab
*/
openNewFile
opens a file, pushes in file array and opens tab
openNewFile opens a file pushes in file array and opens tab
function openNewFile() {
	var id = new Date().getTime();
	var name = 'untitled';
	defaultFile = new File(id, name, '');
	unactivePrevious(activeFile);
	activeFile = defaultFile;
	myCodeMirror.doc.setValue(activeFile.content);
	FILES.push(defaultFile);
	console.log(FILES);
	openFileTab(id, name);
}
function openNewFile ( ) { var id = new Date ( ) . getTime ( ) ; var name = 'untitled' ; defaultFile = new File ( id , name , '' ) ; unactivePrevious ( activeFile ) ; activeFile = defaultFile ; myCodeMirror . doc . setValue ( activeFile . content ) ; FILES . push ( defaultFile ) ; console . log ( FILES ) ; openFileTab ( id , name ) ; }
openNewFile
opens a file, pushes in file array and opens tab
openNewFile opens a file pushes in file array and opens tab