I’m currently working on the Tips.js from mootools library and my code breaks on the line that has those el.$tmp, and console says it’s undefined
Can anybody help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
in 1.11 (haven’t checked in 1.2+) $tmp is a reference to the element itself, created and used internally by the garbage collector:
the lines
el.$tmp = {'opacity': 1};(in collect method above) andel.htmlElement = el.$tmp = el = null;(in trash method above) are the only places in the source where this property is assigned that i could find, although it’s called by various other methods, such as Element.setOpacity and Element.getStyle (specifically, only to return opacity value), as well as methods in the Tips class1.2 might not have this issue, but in any case, hope that helps and sorry i couldn’t help more