Mootools1.1 what is element.$tmp?
i see开发者_StackOverflow it
function(element)
{
element.$tmp.myTitle = 'title';
element.$tmp.myText = 'text';
}
anybody know ?
when i bring this function to use in mootools1.2 it not define $tmp
$tmp?
use for Tips plugin mootools
It was used in mootools 1.1 to store values on a DOM element (the tooltip in your case). Since mootools 1.2, the store() and retrieve() methodes are used for this, cause it will prevent you for creating memory leaks, caused by circular references.
http://mootools.net/blog/2008/01/22/whats-new-in-12-element-storage/
精彩评论