mirror of
				https://github.com/flynx/actions.js.git
				synced 2025-10-31 03:10:09 +00:00 
			
		
		
		
	added a .run(..) method...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									eab204e36a
								
							
						
					
					
						commit
						78a6beb8f4
					
				
							
								
								
									
										11
									
								
								actions.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								actions.js
									
									
									
									
									
								
							| @ -1378,6 +1378,17 @@ module.MetaActions = { | |||||||
| 			}) | 			}) | ||||||
| 			.unique() }, | 			.unique() }, | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 	// Run a function in the context of the action set...
 | ||||||
|  | 	//
 | ||||||
|  | 	// This is here simply as a utility function, to enable running code 
 | ||||||
|  | 	// in a concatinative manner without interruption...
 | ||||||
|  | 	run: function(func){ | ||||||
|  | 		var res = func ? func.call(this) : undefined | ||||||
|  | 		return res === undefined ? this : res | ||||||
|  | 	}, | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| 	// doc generators...
 | 	// doc generators...
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// XXX would be nice to make these prop of the action itself but I 
 | 	// XXX would be nice to make these prop of the action itself but I 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "ig-actions", |   "name": "ig-actions", | ||||||
|   "version": "3.1.2", |   "version": "3.2.0", | ||||||
|   "description": "", |   "description": "", | ||||||
|   "main": "actions.js", |   "main": "actions.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user