I get the following error in Prototype.js
'undefined' is null or not an object line 5557 char 5
which is:
var respondersForEvent = registry.get(eventName); if (Object.isUndefined(respondersForEvent)) { respondersForEvent = []; registry.set(eventName, respondersForEvent); }
How can i fix this?
Here is the code indicating the error:
Event.observe(window, "load", function () { Event.observe("query", "keypress", function (e) { if (e.keyCode == Event.KEY_RETURN) { search(); } }); });
He says the error is pressed.
source share