filez/labs/hipstered/js/hipstered.js
/**
* removes a file with id from FILES array
*/
removes a file with id from FILES array
removes a file with id from FILES array
function seekAndDestroy(id) {
	var activeid = -1;
	for (i=0;i<FILES.length;i++) {
		if (FILES[i].id == id) {
			console.log("Found it");
			FILES.splice(i,1);
			if (i>0) {
				activeid = FILES[i-1].id;
			} else if (i < FILES.length -1) {
				activeid = FILES[i+1].id;
			}
			return activeid;
		}
	}
}
function seekAndDestroy ( id ) { var activeid = - 1 ; for ( i = 0 ; i < FILES . length ; i ++ ) { if ( FILES [ i ] . id == id ) { console . log ( "Found it" ) ; FILES . splice ( i , 1 ) ; if ( i > 0 ) { activeid = FILES [ i - 1 ] . id ; } else if ( i < FILES . length - 1 ) { activeid = FILES [ i + 1 ] . id ; } return activeid ; } } }
removes a file with id from FILES array
removes a file with id from FILES array