filez/labs/hipstered/js/hipstered.js
/**
* closes a file, removes from array and destroys the tab
*/
closes a file, removes from array and destroys the tab
closes a file removes from array and destroys the tab
function closeFile (id) {
	console.log("Closing file..." + id);
	activeid = seekAndDestroy(id);
	if (activeFile.id == id) {
		activateTab(activeid);
		activeFile = getActiveFile(activeid);
	}
	console.log('New active id: ' + activeid);
	closeFileTab(id);
}
function closeFile ( id ) { console . log ( "Closing file..." + id ) ; activeid = seekAndDestroy ( id ) ; if ( activeFile . id == id ) { activateTab ( activeid ) ; activeFile = getActiveFile ( activeid ) ; } console . log ( 'New active id: ' + activeid ) ; closeFileTab ( id ) ; }
closes a file, removes from array and destroys the tab
closes a file removes from array and destroys the tab
// We change active file if whe close active file