cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-05-17 03:46:57 +03:00
parent 3321eccb87
commit 1fdcef47cb
2 changed files with 4 additions and 21 deletions

View File

@ -16,13 +16,10 @@ if(typeof(process) != 'undefined'){
var exiftool = requirejs('exiftool') var exiftool = requirejs('exiftool')
// XXX EXPERIMENTAL: graph... // XXX EXPERIMENTAL: graph...
// XXX move this to ./components/
try {
// do this only if browser is loaded... // do this only if browser is loaded...
var graph = window != null ? var graph = window != null ?
requirejs('lib/components/ig-image-graph') requirejs('lib/components/ig-image-graph')
: null : null
} catch(e){}
} }

View File

@ -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 }) * vim:set ts=4 sw=4 : */ return module })