The template provides a way to handle tracking elements: those are absolutely positioned elements which are following another element in the document flow. They need to be repositioned everytime the user scrolls, for instance.
To start tracking an element, use this jQuery method:
$(selector).trackElement(target, refreshFunc);
Target is the element which should be tracked, and refreshFunc the function which will refresh the tracking element's position (called with tracking element as 'this' and target as argument).
You can also stop tracking:
$(selector).stopTracking();
Make the current element track another element
@param jQuery target the jQuery object of the target element
@param function refreshFunc the function to refresh position (called with tracking element as 'this' and target as argument)
If none, the tracking element will be aligned with its target
Stop a element from tracking
@param boolean clearPos if true, will clean position styling (top & left)
Updated tracking elements within selection
Update tracking elements in selection's inner elements
Returns the jQuery list of tracking elements