forked from Botanical/BotanJS
Various bug fixes & Preferred option for SiteFile
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
(function(){
|
||||
var ns = __namespace( "Astro.Blog.Components" );
|
||||
|
||||
/** @type {System.Debug} */
|
||||
var debug = __import( "System.Debug" );
|
||||
/** @type {System.utils.IKey} */
|
||||
var IKey = __import( "System.utils.IKey" );
|
||||
/** @type {Dandelion} */
|
||||
@@ -23,6 +25,11 @@
|
||||
if( !config ) throw new Error( "config is not defined" );
|
||||
// TODO: Make a trigger for downloading from server
|
||||
var stage = Dand.id( id );
|
||||
if( !stage )
|
||||
{
|
||||
debug.Info( "[SiteFile] id not found: " + id );
|
||||
return;
|
||||
}
|
||||
this.id = id;
|
||||
this.hash = hash;
|
||||
this.type = IDOMElement( stage ).getDAttribute( "type" );
|
||||
|
||||
Reference in New Issue
Block a user