Merged sidebar all.js, ignore globe if js not loaded yet
This commit is contained in:
parent
5b35bea489
commit
1a536369de
2 changed files with 12 additions and 4 deletions
|
@ -372,7 +372,7 @@ class Sidebar extends Class
|
|||
@globe.scene.remove(@globe.points)
|
||||
@globe.addData( globe_data, {format: 'magnitude', name: "hello", animated: false} )
|
||||
@globe.createPoints()
|
||||
else
|
||||
else if typeof(DAT) != "undefined"
|
||||
try
|
||||
@globe = new DAT.Globe( @tag.find(".globe")[0], {"imgDir": "/uimedia/globe/"} )
|
||||
@globe.addData( globe_data, {format: 'magnitude', name: "hello"} )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue