admin管理员组文章数量:1316980
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.
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.
Share Improve this question edited Dec 29, 2011 at 15:52 Rob W 349k87 gold badges807 silver badges682 bronze badges asked Dec 13, 2010 at 21:01 SteSte 1,5208 gold badges33 silver badges63 bronze badges 1-
Maybe unrelated, but what is
this
referring to? Tryelement.href
. – giraff Commented Dec 18, 2010 at 11:05
1 Answer
Reset to default 7This 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 e back to the object or the handling function being undefined.
本文标签: javascriptprototyperegistry is undefinedStack Overflow
版权声明:本文标题:javascript - prototype : registry is undefined - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742009530a2412624.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论