开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜