Skip to content

Commit

Permalink
Add a children property to an album to expose the children collection
Browse files Browse the repository at this point in the history
  • Loading branch information
talmdal committed Aug 31, 2010
1 parent f113e75 commit 688f30d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Gallery3Api/src/org/gallery3/api/GalleryAlbum.as
Expand Up @@ -86,6 +86,11 @@ package org.gallery3.api {
loadAlbums();
}
return _albums;
case "children":
if ((!_childrenLoaded && (this.members.source as Array).length > 0)) {
loadChildren();
}
return _children;
default:
// Do nothing;
break;
Expand Down
Expand Up @@ -35,8 +35,9 @@
import mx.core.BitmapAsset;
import mx.events.FlexEvent;
import org.gallery3.organize.OrganizeStyle;
import org.gallery3.api.GalleryItem;
import org.gallery3.organize.OrganizeParameters;
import org.gallery3.organize.OrganizeStyle;
private const THUMBNAIL_MAX_SIZE:Number = 90;
private const THUMBNAIL_CELL_WIDTH:Number = 100;
Expand Down

0 comments on commit 688f30d

Please sign in to comment.