mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3321eccb87
commit
1fdcef47cb
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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 })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user