add comments
This commit is contained in:
		
							parent
							
								
									5561d49a48
								
							
						
					
					
						commit
						e7ea35fa60
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -1,11 +1,20 @@ | |||
| import React, { PropTypes } from 'react'; | ||||
| 
 | ||||
| /** | ||||
|  *  How many console messages to store | ||||
|  *  @type {Number} | ||||
|  */ | ||||
| const consoleMax = 5; | ||||
| 
 | ||||
| class Console extends React.Component { | ||||
| 
 | ||||
|   constructor(props) { | ||||
|     super(props); | ||||
| 
 | ||||
|     /** | ||||
|      *  An array of React Elements that include previous console messages | ||||
|      *  @type {Array} | ||||
|      */ | ||||
|     this.children = []; | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 therewasaguy
						therewasaguy