INNER CODE UNIT · JavaScript

filePaths

AscensionGameDev/Intersect-Engine · Intersect.Server/wwwroot/js/assets.js:150

			const filePaths = manifest.Files.map(f => f.Path);
			/** @type {Map<string, HTMLElement>} */
			const reusedElements = new Map();
			for (const entryElement of entryElements) {
				const entryPath = entryElement.getAttribute('data-path');
				if (!filePaths.includes(entryPath)) {
					this.#entriesContainer.removeChild(entryElement);
					return;
				}

				reusedElements.set(entryPath, entryElement);
			}

			/** @type {string | null} */
			let previousPath = null;
			for (let index = 0; index < manifest.Files.length; ++index) {
				const entry = manifest.Files[index];
				let element = reusedElements.get(entry.Path);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…