mirror of
https://github.com/nasa/openmct.git
synced 2025-05-06 18:48:27 +00:00
[Info Bubble] Add clarifying comments
Add clarifying comments for the info gesture, WTD-884.
This commit is contained in:
parent
d9a2a7f4c3
commit
69dce9f88d
@ -5,6 +5,18 @@ define(
|
|||||||
function () {
|
function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The `info` gesture displays domain object metadata in a
|
||||||
|
* bubble on hover.
|
||||||
|
*
|
||||||
|
* @constructor
|
||||||
|
* @param $timeout Angular's `$timeout`
|
||||||
|
* @param {InfoService} infoService a service which shows info bubbles
|
||||||
|
* @param {number} DELAY delay, in milliseconds, before bubble appears
|
||||||
|
* @param element jqLite-wrapped DOM element
|
||||||
|
* @param {DomainObject} domainObject the domain object for which to
|
||||||
|
* show information
|
||||||
|
*/
|
||||||
function InfoGesture($timeout, infoService, DELAY, element, domainObject) {
|
function InfoGesture($timeout, infoService, DELAY, element, domainObject) {
|
||||||
var dismissBubble,
|
var dismissBubble,
|
||||||
pendingBubble,
|
pendingBubble,
|
||||||
@ -65,6 +77,11 @@ define(
|
|||||||
scopeOff = element.scope().$on('$destroy', hideBubble);
|
scopeOff = element.scope().$on('$destroy', hideBubble);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
/**
|
||||||
|
* Detach any event handlers associated with this gesture.
|
||||||
|
* @memberof InfoGesture
|
||||||
|
* @method
|
||||||
|
*/
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
// Dismiss any active bubble...
|
// Dismiss any active bubble...
|
||||||
hideBubble();
|
hideBubble();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user