diff -r de8fdd68930f -r d5d6e98a95d3 src/js/widgets/tweetsView.js --- a/src/js/widgets/tweetsView.js Mon Dec 05 15:53:49 2011 +0100 +++ b/src/js/widgets/tweetsView.js Mon Dec 05 15:54:09 2011 +0100 @@ -29,45 +29,13 @@ this.drawTweet(annotation); - var time = this._Popcorn.currentTime(); - this._timeoutId = window.setTimeout(IriSP.wrap(this, this.clearPanel), IriSP.widgetsDefaults.TweetsWidget.tweet_display_period); -}; - - -IriSP.TweetsView.prototype.clearPanel = function() { - this._displayingTweet = false; - this._timeoutId = undefined; - this.closePanel(); - }; -IriSP.TweetsView.prototype.closePanel = function() { - if (this._timeoutId != undefined) { - /* we're called from the "close window" link */ - /* cancel the timeout */ - window.clearTimeout(this._timeoutId); - this._timeoutId = null; - } - - this.selector.hide("blind", 400); - -}; - -/* cancel the timeout if the user clicks on the keep panel open button */ -IriSP.TweetsView.prototype.keepPanel = function() { - if (this._timeoutId != undefined) { - /* we're called from the "close window" link */ - /* cancel the timeout */ - window.clearTimeout(this._timeoutId); - this._timeoutId = null; - } -}; IriSP.TweetsView.prototype.draw = function() { var _this = this; this.selector.append(Mustache.to_html(IriSP.polemicAnnotationView_template, {})); - this.selector.hide(); this._Popcorn.listen("IriSP.PolemicTweet.click", IriSP.wrap(this, this.PolemicTweetClickHandler)); };