diff --git a/ui (gen4)/features/metadata.js b/ui (gen4)/features/metadata.js index b0dc289e..bbc12b0a 100755 --- a/ui (gen4)/features/metadata.js +++ b/ui (gen4)/features/metadata.js @@ -16,13 +16,10 @@ if(typeof(process) != 'undefined'){ var exiftool = requirejs('exiftool') // XXX EXPERIMENTAL: graph... - // XXX move this to ./components/ - try { - // do this only if browser is loaded... - var graph = window != null ? - requirejs('lib/components/ig-image-graph') - : null - } catch(e){} + // do this only if browser is loaded... + var graph = window != null ? + requirejs('lib/components/ig-image-graph') + : null } diff --git a/ui (gen4)/lib/components/ig-image-graph.js b/ui (gen4)/lib/components/ig-image-graph.js index 9644e568..5961e449 100644 --- a/ui (gen4)/lib/components/ig-image-graph.js +++ b/ui (gen4)/lib/components/ig-image-graph.js @@ -557,20 +557,6 @@ window.customElements.define('ig-image-graph', igImageGraph) -//--------------------------------------------------------------------- -// helper... - -var makeImageGraph = -module.makeImageGraph = -function(img, options){ - var g = document.createElement('ig-image-graph') - Object.assign(g, - options || {}) - g.src = img - return g } - - - /********************************************************************** * vim:set ts=4 sw=4 : */ return module })