Skip to content

Commit

Permalink
Add ‘type’ to room:after-show event
Browse files Browse the repository at this point in the history
This makes it consistent with the callback for `room:after-add`
  • Loading branch information
bklang authored and benlangfeld committed Aug 1, 2015
1 parent d325ac2 commit 0d9fc66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view/pane/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Candy.View.Pane = (function(self, $) {
var elem = $(this);
evtData = {
'roomJid': elem.attr('data-roomjid'),
'type': elem.attr('data-roomtype'),
'element' : elem
};

Expand All @@ -145,6 +146,7 @@ Candy.View.Pane = (function(self, $) {
*
* Parameters:
* (String) roomJid - Room JID
* (String) type - Room Type
* (jQuery.Element) element - Room element
*/
$(Candy).triggerHandler('candy:view.room.after-show', evtData);
Expand All @@ -157,6 +159,7 @@ Candy.View.Pane = (function(self, $) {
*
* Parameters:
* (String) roomJid - Room JID
* (String) type - Room Type
* (jQuery.Element) element - Room element
*/
$(Candy).triggerHandler('candy:view.room.after-hide', evtData);
Expand Down

0 comments on commit 0d9fc66

Please sign in to comment.