pass windowman generation settings
This commit is contained in:
		
							parent
							
								
									00fc797ee2
								
							
						
					
					
						commit
						7eda4d82aa
					
				
					 1 changed files with 10 additions and 10 deletions
				
			
		|  | @ -5,19 +5,19 @@ Construct an internal page. | |||
| import windowman from "/scripts/GUI/builder/windowman.js"; | ||||
| 
 | ||||
| export default class Page { | ||||
|      constructor () { | ||||
|           this.window = window; | ||||
|           this.window[`manager`] = new windowman(); | ||||
| 	constructor (OPTIONS) { | ||||
| 		this.window = window; | ||||
| 		this.window[`manager`] = new windowman(OPTIONS); | ||||
| 		 | ||||
|           // Link the elements from this.window.manager to this.window for convenience later on. 
 | ||||
|           if ((this.window[`manager`])) { | ||||
|                this.window.manager.sync(); | ||||
| 		// Link the elements from this.window.manager to this.window for convenience later on. 
 | ||||
| 		if ((this.window[`manager`])) { | ||||
| 			this.window.manager.sync(); | ||||
| 
 | ||||
|                Object.assign(this.window, this.window[`manager`]); | ||||
|           } | ||||
| 			Object.assign(this.window, this.window[`manager`]); | ||||
| 		} | ||||
| 
 | ||||
| 		document.addEventListener("DOMContentLoaded", function () { | ||||
| 			M.AutoInit(); | ||||
| 		}); | ||||
|      } | ||||
| 	} | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue