Lines Matching refs:node

41 		 * or a node instance.
53 * The delegate node to which event listeners should be attached. This
54 * node should be an ancestor of all trigger nodes bound to the
64 * The time to wait, after the mouse enters the trigger node, to display
71 * The time to wait, after the mouse leaves the trigger node, to hide
79 * node, to hide it, if the mouse has not left the trigger node
107 // Currently bound trigger node information
109 node : null,
115 // mousemove and mouseout are set on the trigger node
168 * node, based on (in order of precedence):
170 * a). The given node's 'content' attribute value, if set:
172 * function(node, this), whereby this is the Tooltip instance
175 * the node's Id.
178 * b) The value of the node's 'title' attribute.
182 getTooltipContent : function(node) {
186 content = content(node, this);
188 content = content[node.get('id')];
194 content = node.getAttribute('title');
200 * set the content of the tooltip for the current trigger node. This
204 setTriggerContent : function(node) {
205 var l, content = this.getTooltipContent(node),
217 * Gets the closest ancestor of the given node, which is a tooltip
218 * trigger node
220 getParentTrigger : function(node) {
222 return (node.hasClass(cn))
223 ? node
224 : node.ancestor(function(node) { return node.hasClass(cn); });
251 * Attaches the default mouseover DOM listener to the current delegate node
266 * trigger node.
269 var node = this.getParentTrigger(e.target);
270 if (node && (!this._currTrigger.node
271 || !node.compareTo(this._currTrigger.node)))
273 this._enterTrigger(node, e.pageX, e.pageY);
280 * node
296 * Default handler invoked when the mouse enters a trigger node. Set the
301 _enterTrigger : function(node, x, y) {
302 this._setCurrentTrigger(node, x, y);
304 node : node,
315 var node = e.node;
320 Y.later(delay, this, this._showTooltip, [ node ]);
325 * node. Fires the triggerLeave event and sets up the hide timer
327 _leaveTrigger : function(node) {
335 * Default handler invoked for mousemove events on the trigger node.
345 _showTooltip : function(node) {
371 * Set the currently bound trigger node information, clearing out the
374 _setCurrentTrigger : function(node, x, y) {
377 this.setTriggerContent(node);
379 Y.on('mousemove', Y.bind(this._onNodeMouseMove, this), node);
381 Y.on('mouseout', Y.bind(this._onNodeMouseOut, this), node);
382 var title = node.getAttribute('title');
384 node.setAttribute('title', '');
388 currTrigger.node = node;
393 * on the trigger node, if it was originally set.
398 if (currTrigger.node) {
399 var node = currTrigger.node;
401 currTrigger.node = null;
408 node.setAttribute('title', title);