Home Reference Source

vgui/30-js-child.js

/**
 * Represents a child instance of VguiJavascriptContext
 */
export class JsChild extends Element {
	constructor(id) {
		super(id);
	}

	// Prevent enumeration inside other environment
	/**
	 * @override
	 */
	get childNodes() {
		return [];
	}

	/**
	 * @override
	 */
	toString() {
		return "JS Environment[" + this.id + "]";
	}
}