src/js/widgets/tweetsWidget.js
branchpopcorn-port
changeset 842 4ae2247a59f4
parent 820 7968346b9689
--- a/src/js/widgets/tweetsWidget.js	Tue Apr 03 20:30:12 2012 +0200
+++ b/src/js/widgets/tweetsWidget.js	Fri Apr 06 16:49:32 2012 +0200
@@ -19,7 +19,7 @@
     var title = IriSP.formatTweet(annotation.content.title);
     var img = annotation.content.img.src;
     if (typeof(img) === "undefined" || img === "" || img === "None") {
-      img = IriSP.widgetsDefaults.TweetsWidget.default_profile_picture;
+      img = this.default_profile_picture;
     }
 
     var imageMarkup = IriSP.templToHTML("<img src='{{src}}' alt='user image'></img>", 
@@ -63,7 +63,7 @@
   this.drawTweet(annotation);
 
   var time = this._Popcorn.currentTime();  
-  this._timeoutId = window.setTimeout(IriSP.wrap(this, this.clearPanel), IriSP.widgetsDefaults.TweetsWidget.tweet_display_period);
+  this._timeoutId = window.setTimeout(IriSP.wrap(this, this.clearPanel), this.tweet_display_period);
 };