Fixed Echo bug with attr only being resolved on itself.
This commit is contained in:
		
							parent
							
								
									e22fc1622e
								
							
						
					
					
						commit
						a2c6b787f7
					
				| @ -1,4 +1,4 @@ | ||||
| --- | ||||
| import groowt.view.web.lib.Echo | ||||
| --- | ||||
| <Echo greeting=${cliGreeting}><p>$greeting</p></Echo> | ||||
| <Echo><p>$cliGreeting</p></Echo> | ||||
|  | ||||
| @ -15,8 +15,12 @@ class Echo extends DelegatingWebViewComponent { | ||||
|     Object getProperty(String propertyName) { | ||||
|         try { | ||||
|             return super.getProperty(propertyName) | ||||
|         } catch (MissingPropertyException ignored) { | ||||
|             return attr[propertyName] | ||||
|         } catch (MissingPropertyException missingPropertyException) { | ||||
|             if (this.attr.containsKey(propertyName)) { | ||||
|                 return this.attr[propertyName] | ||||
|             } else { | ||||
|                 throw missingPropertyException | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 JesseBrault0709
						JesseBrault0709