mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-30 23:23:02 +00:00 
			
		
		
		
	Move construction of rootwidget into main startup
This commit is contained in:
		| @@ -22,14 +22,6 @@ exports.synchronous = true; | ||||
| var widget = require("$:/core/modules/widgets/widget.js"); | ||||
|  | ||||
| exports.startup = function() { | ||||
| 	// Create a root widget for attaching event handlers. By using it as the parentWidget for another widget tree, one can reuse the event handlers | ||||
| 	$tw.rootWidget = new widget.widget({ | ||||
| 		type: "widget", | ||||
| 		children: [] | ||||
| 	},{ | ||||
| 		wiki: $tw.wiki, | ||||
| 		document: document | ||||
| 	}); | ||||
| 	// Install the modal message mechanism | ||||
| 	$tw.modal = new $tw.utils.Modal($tw.wiki); | ||||
| 	$tw.rootWidget.addEventListener("tw-modal",function(event) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene