Various bug fixes & Preferred option for SiteFile

This commit is contained in:
2015-10-27 07:50:11 +08:00
parent 1b11a1dff0
commit 07ceb117da
9 changed files with 153 additions and 83 deletions
@@ -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" );