forked from Botanical/BotanJS
Moved SiteFiles.files to SFObjects
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
/** @type {_AstJson_.SiteFile} */
|
||||
var finfo = JSON.parse( obj ).file;
|
||||
|
||||
switch( finfo.type ) {
|
||||
|
||||
switch( finfo.type )
|
||||
{
|
||||
case "image":
|
||||
var node = Dand.wrap('img');
|
||||
var k = new IKey( "src", null );
|
||||
@@ -151,9 +151,10 @@
|
||||
config = Conf.get( "SiteFile" );
|
||||
if( config )
|
||||
{
|
||||
for( var i in config.files )
|
||||
var SFOs = Conf.get( "SFObjects" );
|
||||
for( var i in SFOs )
|
||||
{
|
||||
var f = config.files[i];
|
||||
var f = SFOs[i];
|
||||
new SiteFile( f[0], f[1] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user