mirror of
				https://github.com/flynx/actions.js.git
				synced 2025-10-31 03:10:09 +00:00 
			
		
		
		
	introspection tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									0d1a788410
								
							
						
					
					
						commit
						7f68c713fb
					
				
							
								
								
									
										17
									
								
								actions.js
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								actions.js
									
									
									
									
									
								
							| @ -702,11 +702,7 @@ function Alias(alias, doc, ldoc, attrs, target){ | |||||||
| 
 | 
 | ||||||
| 	doc = (!doc && parsed) ? parsed.doc : doc | 	doc = (!doc && parsed) ? parsed.doc : doc | ||||||
| 
 | 
 | ||||||
| 	var meth = Action(alias,  | 	var func = function(){ | ||||||
| 		doc,  |  | ||||||
| 		null,  |  | ||||||
| 		attrs,  |  | ||||||
| 		function(){ |  | ||||||
| 		// parse the target...
 | 		// parse the target...
 | ||||||
| 		// XXX should we cache here???
 | 		// XXX should we cache here???
 | ||||||
| 		var action = parsed || this.parseStringAction(target) | 		var action = parsed || this.parseStringAction(target) | ||||||
| @ -717,7 +713,12 @@ function Alias(alias, doc, ldoc, attrs, target){ | |||||||
| 
 | 
 | ||||||
| 		// call the alias...
 | 		// call the alias...
 | ||||||
| 		return this[action.action].apply(this, args) | 		return this[action.action].apply(this, args) | ||||||
| 		}) | 	} | ||||||
|  | 	func.toString = function(){  | ||||||
|  | 		return meth.alias.code || meth.alias } | ||||||
|  | 
 | ||||||
|  | 	// make the action...
 | ||||||
|  | 	var meth = Action(alias, doc, null, attrs, func) | ||||||
| 	meth.__proto__ = this.__proto__ | 	meth.__proto__ = this.__proto__ | ||||||
| 
 | 
 | ||||||
| 	meth.func.alias = target | 	meth.func.alias = target | ||||||
| @ -1664,7 +1665,8 @@ module.MetaActions = { | |||||||
| 					+ (cur.pre.source_tag ?  | 					+ (cur.pre.source_tag ?  | ||||||
| 						normalizeTabs('// Source tag: ' + cur.pre.source_tag) + p : '') | 						normalizeTabs('// Source tag: ' + cur.pre.source_tag) + p : '') | ||||||
| 					// code...
 | 					// code...
 | ||||||
| 					//+ normalizeTabs(cur.pre.toString()).replace(/\n/g, p)
 | 					+ normalizeTabs(cur.pre.toString()).replace(/\n/g, p) | ||||||
|  | 					/* | ||||||
| 					+ normalizeTabs( | 					+ normalizeTabs( | ||||||
| 						!cur.pre.alias ?  | 						!cur.pre.alias ?  | ||||||
| 							cur.pre.toString() | 							cur.pre.toString() | ||||||
| @ -1672,6 +1674,7 @@ module.MetaActions = { | |||||||
| 							cur.pre.alias  | 							cur.pre.alias  | ||||||
| 						: cur.pre.alias.code | 						: cur.pre.alias.code | ||||||
| 					).replace(/\n/g, p) | 					).replace(/\n/g, p) | ||||||
|  | 					*/ | ||||||
| 					+ p | 					+ p | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "ig-actions", |   "name": "ig-actions", | ||||||
|   "version": "3.5.0", |   "version": "3.5.1", | ||||||
|   "description": "", |   "description": "", | ||||||
|   "main": "actions.js", |   "main": "actions.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user