style(RingOverlay): Rename onAvatarDisplayed to onAvatarVisible

pull/880/head
hristoterezov 9 years ago
parent 4acfb033c8
commit 58a07355fb
  1. 6
      modules/UI/ring_overlay/RingOverlay.js

@ -13,7 +13,7 @@ let overlay = null;
* @param {boolean} shown indicates whether the avatar on the large video is * @param {boolean} shown indicates whether the avatar on the large video is
* currently displayed or not. * currently displayed or not.
*/ */
function onAvatarDisplayed(shown) { function onAvatarVisible(shown) {
overlay._changeBackground(shown); overlay._changeBackground(shown);
} }
@ -148,7 +148,7 @@ export default {
overlay = new RingOverlay(callee, disableRingingSound); overlay = new RingOverlay(callee, disableRingingSound);
APP.UI.addListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE, APP.UI.addListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE,
onAvatarDisplayed); onAvatarVisible);
}, },
/** /**
@ -162,7 +162,7 @@ export default {
overlay.destroy(); overlay.destroy();
overlay = null; overlay = null;
APP.UI.removeListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE, APP.UI.removeListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE,
onAvatarDisplayed); onAvatarVisible);
return true; return true;
}, },

Loading…
Cancel
Save