equal
deleted
inserted
replaced
3 IriSP.TweetsWidget = function(Popcorn, config, Serializer) { |
3 IriSP.TweetsWidget = function(Popcorn, config, Serializer) { |
4 IriSP.Widget.call(this, Popcorn, config, Serializer); |
4 IriSP.Widget.call(this, Popcorn, config, Serializer); |
5 |
5 |
6 this._displayingTweet = false; |
6 this._displayingTweet = false; |
7 this._timeoutId = undefined; |
7 this._timeoutId = undefined; |
8 this._hidden = false; |
8 this._hidden = false; /* hidden means that the createAnnotationWidget is shown */ |
9 }; |
9 }; |
10 |
10 |
11 |
11 |
12 IriSP.TweetsWidget.prototype = new IriSP.Widget(); |
12 IriSP.TweetsWidget.prototype = new IriSP.Widget(); |
13 |
13 |
131 IriSP.TweetsWidget.prototype.handleAnnotateSignal = function() { |
131 IriSP.TweetsWidget.prototype.handleAnnotateSignal = function() { |
132 if (this._hidden == false) { |
132 if (this._hidden == false) { |
133 this.selector.hide(); |
133 this.selector.hide(); |
134 this._hidden = true; |
134 this._hidden = true; |
135 } else { |
135 } else { |
136 this.selector.show(); |
136 if (this._displayingTweet !== false) |
|
137 this.selector.show(); |
|
138 |
|
139 |
137 this._hidden = false; |
140 this._hidden = false; |
138 } |
141 } |
139 }; |
142 }; |