fix(core): update
This commit is contained in:
		
							
								
								
									
										14
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								package.json
									
									
									
									
									
								
							| @@ -14,17 +14,17 @@ | ||||
|     "buildDocs": "tsdoc" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@git.zone/tsbuild": "^2.1.70", | ||||
|     "@git.zone/tsbundle": "^2.0.10", | ||||
|     "@git.zone/tstest": "^1.0.81", | ||||
|     "@git.zone/tsbuild": "^2.1.72", | ||||
|     "@git.zone/tsbundle": "^2.0.15", | ||||
|     "@git.zone/tstest": "^1.0.86", | ||||
|     "@push.rocks/tapbundle": "^5.0.15", | ||||
|     "@types/node": "^20.8.7" | ||||
|     "@types/node": "^20.11.16" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@design.estate/dees-domtools": "^2.0.54", | ||||
|     "@design.estate/dees-domtools": "^2.0.57", | ||||
|     "@push.rocks/isounique": "^1.0.5", | ||||
|     "@push.rocks/smartrx": "^3.0.6", | ||||
|     "lit": "^3.0.0" | ||||
|     "@push.rocks/smartrx": "^3.0.7", | ||||
|     "lit": "^3.1.2" | ||||
|   }, | ||||
|   "browserslist": [ | ||||
|     "last 1 chrome versions" | ||||
|   | ||||
							
								
								
									
										1751
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1751
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@design.estate/dees-element', | ||||
|   version: '2.0.33', | ||||
|   version: '2.0.34', | ||||
|   description: 'a custom element class extending lit element class' | ||||
| } | ||||
|   | ||||
| @@ -32,6 +32,9 @@ export class DeesElement extends plugins.lit.LitElement { | ||||
|       this.goBright = goBrightArg; | ||||
|     }); | ||||
|     this.rxSubscriptions.push(this.themeSubscription); | ||||
|     for (const startupFunction of this.startupFunctions) { | ||||
|       await startupFunction(); | ||||
|     } | ||||
|     this.dispatchEvent(new CustomEvent('deesElementConnected')); | ||||
|   } | ||||
|  | ||||
| @@ -40,7 +43,12 @@ export class DeesElement extends plugins.lit.LitElement { | ||||
|     this.elementDomReadyDeferred.resolve(); | ||||
|   } | ||||
|  | ||||
|   private garbageFunctions: (() => void)[] = []; | ||||
|   private startupFunctions: (() => void | Promise<any>)[] = []; | ||||
|   public registerStartupFunction(startupFunctionArg: () => void) { | ||||
|     this.startupFunctions.push(startupFunctionArg); | ||||
|   } | ||||
|  | ||||
|   private garbageFunctions: (() => void | Promise<any>)[] = []; | ||||
|   public registerGarbageFunction(garbageFunctionArg: () => void) { | ||||
|     this.garbageFunctions.push(garbageFunctionArg); | ||||
|   } | ||||
| @@ -52,7 +60,7 @@ export class DeesElement extends plugins.lit.LitElement { | ||||
|       subscription.unsubscribe(); | ||||
|     } | ||||
|     for (const garbageFunction of this.garbageFunctions) { | ||||
|       garbageFunction(); | ||||
|       await garbageFunction(); | ||||
|     } | ||||
|     this.dispatchEvent(new CustomEvent('deesElementDisconnected')); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user