开发者

prototype : registry is undefined

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


$$('#pageNav a').each(function(element) {
    elemen开发者_如何学运维t.observe('click', doSome(this.href));
})

pageNav is a UL list with LI and A tags.


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜