Prototype: registry undefined

I have a registry undefined line: 5557 ... with prototype 1.7.

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

pageNav is a UL list with tags LI and A.

+6
javascript prototypejs
source share
1 answer

This may not correspond exactly, but I had a very similar problem. Turned off the object to which I was trying to bind an event handler was undefined.

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

I assume that this type of error usually returns to an object or to an undefined processing function.

+6
source share

All Articles