for (const thumbnail of thumbnails) {
this.#thumbnails.push(new Thumbnail(thumbnail.identifier, thumbnail.link));
}
+
+ delete this.dataset.thumbnails;
}
if (this.dataset.metaData) {
this.#data = JSON.parse(this.dataset.metaData);
+ delete this.dataset.metaData;
}
+ this.#link = this.dataset.link!;
+ delete this.dataset.link;
+
this.#state = State.Ready;
return true;
for (const thumbnail of thumbnails) {
this.#thumbnails.push(new Thumbnail(thumbnail.identifier, thumbnail.link));
}
+ delete this.dataset.thumbnails;
}
if (this.dataset.metaData) {
this.#data = JSON.parse(this.dataset.metaData);
+ delete this.dataset.metaData;
}
+ this.#link = this.dataset.link;
+ delete this.dataset.link;
this.#state = 3 /* State.Ready */;
return true;
}
data-mime-type="%s"
data-thumbnails="%s"
data-meta-data="%s"
+ data-link="%s"
></woltlab-core-file>
EOT,
$this->fileID,
StringUtil::encodeHTML($this->mimeType),
StringUtil::encodeHTML(\json_encode($thumbnails)),
StringUtil::encodeHTML(\json_encode($metaData)),
+ StringUtil::encodeHTML($this->getLink()),
);
}