diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/api/classes/View.NodeMap.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/api/classes/View.NodeMap.html Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,1758 @@ + + + + + View.NodeMap - YUI 3 + + + + + + + + +
+
+
+ +

+ +
+
+ API Docs for: 3.10.3 +
+
+
+ +
+ +
+
+
+ Show: + + + + + + + +
+ + +
+
+
+

View.NodeMap Class

+
+ + + + + + + + + + + Module: view-node-map
+ Parent Module: app + + + + +

Available since 3.5.0

+ +
+ + + +
+

View extension that adds a static getByNode() method that returns the nearest +View instance associated with the given Node (similar to Widget's getByNode() +method).

+ +

Note that it's important to call destroy() on a View instance using this +extension when you plan to stop using it. This ensures that all internal +references to that View are cleared to prevent memory leaks.

+
+ + + +
+ + +
+
+

Item Index

+ + +
+

Methods

+ + +
+ + + + + + + +
+ + +
+

Methods

+ + +
+

getByNode

+ + +
+ (
    + +
  • + + node + +
  • + +
) +
+ + + + + View + + + + + + + + + + + static + + + + + + +
+ + + +

+ + Defined in + + + + + app/js/view-extensions/view-node-map.js:35 + +

+ + + + + +

Available since 3.5.0

+ +
+ +
+

Returns the nearest View instance associated with the given Node. The Node may +be a View container or any child of a View container.

+ +

Note that only instances of Views that have the Y.View.NodeMap extension mixed +in will be returned. The base View class doesn't provide this functionality by +default due to the additional memory management overhead involved in maintaining +a mapping of Nodes to View instances.

+
+ + +
+

Parameters:

+ +
    + +
  • + + node + Node | HTMLElement | String + + + + +
    +

    Node instance, selector string, or + HTMLElement.

    +
    + + +
  • + +
+
+ + + +
+

Returns:

+ +
+ + + View: + + Closest View instance associated with the given Node, or null + if no associated View instance was found. + +
+
+ + + +
+ + +
+ + + + + + + +
+
+ +
+
+
+
+
+
+ + + + + + + + + +