Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

prototype : registry is undefined

I have registry is undefined row: 5557...with prototype 1.7.


$$('#pageNav a').each(function(element) {
    element.observe('click', doSome(this.href));
})

pageNav is a UL list with LI and A tags.

like image 232
Ste Avatar asked Dec 13 '10 21:12

Ste


1 Answers

This may not apply exactly, but I had a very similar problem. Turned out the object I was trying to attach an event handler to was undefined.

// objTbl is undefined -> 'registry is undefined' error
Event.observe(objTbl.rows[i], 'mousedown', getClick);error

I'm guessing this type of error will usually come back to the object or the handling function being undefined.

like image 130
jtpereyda Avatar answered Oct 20 '22 14:10

jtpereyda