| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							| 
									
										
										
										
											2016-08-21 02:19:24 +03:00
										 |  |  | ((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define) | 
					
						
							|  |  |  | (function(require){ var module={} // make module AMD/node compatible...
 | 
					
						
							| 
									
										
										
										
											2016-08-20 22:49:36 +03:00
										 |  |  | /*********************************************************************/ | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | var actions = require('lib/actions') | 
					
						
							|  |  |  | var features = require('lib/features') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var core = require('features/core') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var ExperimentActions = actions.Actions({ | 
					
						
							|  |  |  | 	/* trying an argument mutation method... (FAILED: arguments is mutable) | 
					
						
							|  |  |  | 	argumentMutation: [ | 
					
						
							|  |  |  | 		function(a, b){ | 
					
						
							|  |  |  | 			console.log('ACTIONS ARGS:', a, b) | 
					
						
							|  |  |  | 		}], | 
					
						
							|  |  |  | 	*/ | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var ExperimentFeature =  | 
					
						
							|  |  |  | module.ExperimentFeature = core.ImageGridFeatures.Feature({ | 
					
						
							|  |  |  | 	title: '', | 
					
						
							|  |  |  | 	doc: '', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	tag: 'experiments', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	isApplicable: function(actions){ return actions.experimental }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	actions: ExperimentActions, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	handlers: [ | 
					
						
							|  |  |  | 		/* trying an argument mutation method... (FAILED: arguments is mutable) | 
					
						
							|  |  |  | 		['argumentMutation.pre',  | 
					
						
							|  |  |  | 			function(a, b){ | 
					
						
							|  |  |  | 				console.log('EVENT ARGS:', a, b) | 
					
						
							|  |  |  | 				arguments[0] += 1 | 
					
						
							|  |  |  | 				arguments[1] += 1 | 
					
						
							|  |  |  | 			}], | 
					
						
							|  |  |  | 		*/ | 
					
						
							|  |  |  | 	], | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /********************************************************************** | 
					
						
							| 
									
										
										
										
											2016-08-20 22:49:36 +03:00
										 |  |  | * vim:set ts=4 sw=4 :                               */ return module }) |