<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -64,7 +64,7 @@
     import mx.events.ScrollEvent;
     import mx.utils.ObjectUtil;
 
-    private static const PollingDelay:int = 30000;
+    private static const PollingDelay:int = 60000;
     private static const MinAnimationDelay:int = 500;
     private static const PageScrollSize:int = 512;
     private static const MouseWheelSize:int = 16;</diff>
      <filename>fbair/nile/NileContainer.mxml</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@
 
   &lt;util:LinkImage id=&quot;linkImage&quot;
                   styleName=&quot;mediaImage&quot;
-                  source=&quot;{imgSrc}&quot;
+                  source=&quot;{StringUtil.extractURL(data.src)}&quot;
                   url=&quot;{data.href}&quot;
                   maxWidth=&quot;{maxImageWidth}&quot;
                   maxHeight=&quot;{maxImageHeight}&quot; /&gt;
@@ -31,43 +31,37 @@
             styleName=&quot;videoBadge&quot;
             source=&quot;@Embed('../../assets/video_badge.png')&quot;
             mouseEnabled=&quot;false&quot;
-            includeInLayout=&quot;{showVideoBadge}&quot;
-            visible=&quot;{showVideoBadge}&quot; /&gt;
+            includeInLayout=&quot;{data.type == VideoType}&quot;
+            visible=&quot;{data.type == VideoType}&quot; /&gt;
 
   &lt;mx:Button id=&quot;photoFrame&quot;
              styleName=&quot;photoFrame&quot;
              height=&quot;100%&quot;
              width=&quot;100%&quot;
              buttonMode=&quot;true&quot;
-             includeInLayout=&quot;{showPhotoFrame}&quot;
-             visible=&quot;{showPhotoFrame}&quot;
+             includeInLayout=&quot;{data.type == PhotoType}&quot;
+             visible=&quot;{data.type == PhotoType}&quot;
              click=&quot;{linkImage.gotoLink()}&quot; /&gt;
 
   &lt;mx:Script&gt;&lt;![CDATA[
     import fb.util.Output;
-
     import fb.util.StringUtil;
-
+    
     private static const PhotoType:String = &quot;photo&quot;;
     private static const VideoType:String = &quot;video&quot;;
 
     [Bindable] public var maxImageWidth:Number;
     [Bindable] public var maxImageHeight:Number;
-    [Bindable] private var showPhotoFrame:Boolean = false;
-    [Bindable] private var showVideoBadge:Boolean = false;
-    [Bindable] private var imgSrc:String;
 
     override public function set data(new_data:Object):void {
+      Output.assert(data == null,
+        &quot;Setting media item data that's not already null?:&quot; + this)
       super.data = new_data;
-
-      showPhotoFrame = (data.type == PhotoType);
-      showVideoBadge = (data.type == VideoType);
-      imgSrc = StringUtil.extractURL(data.src);
     }
 
     public function recycle():void {
-      showPhotoFrame = false;
-      showVideoBadge = false;
+      super.data = null;
+
       maxImageWidth = undefined;
       maxImageHeight = undefined;
     }</diff>
      <filename>fbair/nile/renderers/MediaItem.mxml</filename>
    </modified>
    <modified>
      <diff>@@ -243,13 +243,11 @@
         // Create correct type of content
         content = Depot.get(AttachmentRenderer);
         content.percentWidth = 100;
-        
+        content.data = data.attachment;
+
         // Add to content box
         if (contentBox) contentBox.addChild(content);
       }
-
-      // Update content's data
-      if (content) content.data = data.attachment;
     }
 
     // Called when we've fetched profile data about actor.</diff>
      <filename>fbair/nile/renderers/NileRenderer.mxml</filename>
    </modified>
    <modified>
      <diff>@@ -43,12 +43,12 @@ package fbair.util {
     public static const COMMENTS_FETCHED:String = &quot;commentFetched&quot;;
     public static const COMMENT_CREATED:String = &quot;commentCreated&quot;;
 
+    // How long before comment data is stale
+    private static const CommentLifeSpan:int = 45000;
+    
     // We dispatch events thru here to any globally interested party
     public static var dispatcher:EventDispatcher = new EventDispatcher();
 
-    // How long before comment data is stale
-    private static const CommentLifeSpan:int = 25000;
-
     // Our comments thus far fetched, keyed by post_id
     public static var commentCache:Object = new Object();
     private static var fetchTime:Number = 0;</diff>
      <filename>fbair/util/CommentCache.as</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7ed23ed795bef08308360594c43da6ef57d56312</id>
    </parent>
  </parents>
  <author>
    <name>Justin Bishop</name>
    <email>jubishop@gmail.com</email>
  </author>
  <url>http://github.com/jubishop/Facebook-for-Adobe-AIR/commit/d9c2b0586b5e28453baa45771dd48d43146d2190</url>
  <id>d9c2b0586b5e28453baa45771dd48d43146d2190</id>
  <committed-date>2009-05-26T09:22:11-07:00</committed-date>
  <authored-date>2009-05-26T09:22:11-07:00</authored-date>
  <message>different way of dealing with differetn photo src's from server.</message>
  <tree>4682f3ef49da3833ed656e93e6ca5fb011a5ea5e</tree>
  <committer>
    <name>Justin Bishop</name>
    <email>jubishop@gmail.com</email>
  </committer>
</commit>
