You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							428 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							428 B
						
					
					
				/* | 
						|
	DynAPI Distribution | 
						|
	FileReader Class | 
						|
 | 
						|
	The DynAPI Distribution is distributed under the terms of the GNU LGPL license. | 
						|
 | 
						|
	requires: IOElementSync | 
						|
*/ | 
						|
 | 
						|
function FileReader(fn){ | 
						|
	var me =this; | 
						|
	this._fn = fn; | 
						|
	this.io = new IOElement(1); | 
						|
	this.io.activateSyncMode(function(){ | 
						|
		me._fn(me); | 
						|
	}); | 
						|
}; | 
						|
var p = FileReader.prototype; | 
						|
p.read = function(url,data){ | 
						|
	var rt = this.io.get(url,data,false); | 
						|
	return (rt)? rt.value:null; | 
						|
}; |