Opened 12 years ago

Closed 12 years ago

#6518 closed defect (invalid)

dijit.hideTooltip() method should remove the arroundNode parameter

Reported by: guest Owned by:
Priority: high Milestone:
Component: Dijit Version: 1.1.0
Keywords: dijit Tooltip Cc: justicejiang@…; freemanlong@…
Blocked By: Blocking:

Description

The dijit.hideTooltip() method has a parameter name arroundNode. I'd read the code and found it in fact totally useless. Furthermore, the code below make me very difficult to hide the not closed correclty tooltip hard to be hidden:

if(!this.aroundNode
this.aroundNode !== aroundNode){

return;

}

I suggest to remove this parameter. It has nothing to do with the other codes in this method but preventing developers to close the tooltip easily.

Change History (1)

comment:1 Changed 12 years ago by bill

Resolution: invalid
Status: newclosed

Sorry, this parameter is intentional, to prevent race conditions where widgetA closes the tooltip for widgetB. Think of it like the handle returned by dojo.connect().

Note: See TracTickets for help on using tickets.