MCPcopy
hub / github.com/NUKnightLab/TimelineJS3 / loadErrorDisplay

Method loadErrorDisplay

src/js/media/Media.js:219–230  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

217 }
218
219 loadErrorDisplay(message) {
220 try {
221 this._el.content.removeChild(this._el.content_item);
222 } catch (e) {
223 // if this._el.content_item isn't a child of this._el then just keep truckin
224 }
225 this._el.content_item = DOM.create("div", "tl-media-item tl-media-loaderror", this._el.content);
226 this._el.content_item.innerHTML = "<div class='tl-icon-" + this.options.media_type + "'></div><p>" + message + "</p>";
227
228 // After Loaded
229 this.onLoaded(true);
230 }
231
232 /* Events
233 ================================================== */

Callers 15

errorHandlerFunction · 0.80
_loadMediaMethod · 0.80
_loadMediaMethod · 0.80
_loadMediaMethod · 0.80
createMediaMethod · 0.80
_loadMediaMethod · 0.80
createMediaMethod · 0.80
_loadMediaMethod · 0.80
createMediaMethod · 0.80
renderPostMethod · 0.80
_loadMediaMethod · 0.80
_loadMediaMethod · 0.80

Calls 1

onLoadedMethod · 0.95

Tested by

no test coverage detected