* fix a bug in broadcasting and also fix bad log refernce
This commit is contained in:
parent
8a84ff5609
commit
9b1525715e
|
|
@ -49,13 +49,13 @@ module JamRuby
|
|||
def handle_notifications(mount)
|
||||
if mount.listeners == 0 && mount.sourced
|
||||
# if no listeners, but we are sourced, then ask it to stop sourcing
|
||||
@@log.debug("SOURCE_DOWN_REQUEST called on mount #{mount.name}")
|
||||
log.debug("SOURCE_DOWN_REQUEST called on mount #{mount.name}")
|
||||
|
||||
mount.notify_source_down_requested
|
||||
|
||||
elsif mount.listeners > 0 && !mount.sourced
|
||||
# if we have some listeners, and still are not sourced, then ask to start sourcing again
|
||||
@@log.debug("SOURCE_UP_REQUEST called on mount #{mount.name}")
|
||||
log.debug("SOURCE_UP_REQUEST called on mount #{mount.name}")
|
||||
|
||||
mount.notify_source_up_requested
|
||||
end
|
||||
|
|
|
|||
|
|
@ -23,10 +23,11 @@
|
|||
|
||||
// related to listen
|
||||
function stateChange(e, data) {
|
||||
var $listenLink = e.element; // TODO: this is empty
|
||||
console.log(e,$(this))
|
||||
var $listenText = $('.listen-link-text', $listenLink);
|
||||
var $listenDetails = $('.listen-link-details', $listenLink);
|
||||
var $listenLink = data.element;
|
||||
var $parent = $listenLink.closest('.action-links')
|
||||
//console.log(e,$(this))
|
||||
var $listenText = $('.listen-link-text', $parent);
|
||||
var $listenDetails = $('.listen-link-details', $parent);
|
||||
|
||||
if(data.displayText)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue