Hi I need to change the mousemove property onMouseMove but I can’t access the myfunc object because this refer to the el not the parent !!
function myfunc (el) {
this.el = el;
this.mousemove = false;
el.onmousemove = function(){
this.mousemove = true;
};
}
Just store a reference to
this, call it whatever you’d like. It’s common to usethatorself: