VulpesOS/gaia/apps/calendar/js/curl/plugin/dom.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

22 lines
404 B
JavaScript
Executable file

define(function(require, exports) {
'use strict';
var LazyLoader = require('shared/lazy_loader');
exports.load = function(id, require, onLoad, config) {
if (config.isBuild) {
return onLoad();
}
var node = document.getElementById(id);
if (!node) {
onLoad.error('can\'t find element with id #' + id);
return;
}
LazyLoader.load(node, function() {
onLoad(node);
});
};
});