mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-02 16:08:31 +00:00
3.5.374. Fixed clicking usernames in ban notices. Add no_tooltip attribute for badges. Add sort attribute to emote sets for the My Emoticons menu. Add source_line attribute to emote sets for customizing tooltips. Add chat-view-init and chat-view-destroy events to the API.
This commit is contained in:
parent
cc5aec5591
commit
9345237327
10 changed files with 83 additions and 41 deletions
|
@ -555,6 +555,16 @@ API.prototype.unregister_chat_filter = function(filter) {
|
|||
// Channel Callbacks
|
||||
// -----------------------
|
||||
|
||||
API.prototype.iterate_chat_views = function(func) {
|
||||
if ( func === undefined )
|
||||
func = this.trigger.bind(this, 'chat-view-init');
|
||||
|
||||
if ( this.ffz._chatv ) {
|
||||
var view = this.ffz._chatv;
|
||||
func(view.get('element'), view);
|
||||
}
|
||||
}
|
||||
|
||||
API.prototype.iterate_rooms = function(func) {
|
||||
if ( func === undefined )
|
||||
func = this.trigger.bind(this, 'room-add');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue