In the admin zone, when i open the firebug I'm getting this erros message:
TypeError: registry is undefined
var respondersForEvent = registry.get(eventName);
this errors message appears in prototype.js file. The error disappears when i added this line :
if (element === null) return;
after the function:
function _createResponder(element, eventName, handler) {
if (element === null) return;
var registry = Element.retrieve(element, 'prototype_event_registry');
if (Object.isUndefined(registry)) {
CACHE.push(element);
registry = Element.retrieve(element, 'prototype_event_registry', $H());
}
var respondersForEvent = registry.get(eventName);
if (Object.isUndefined(respondersForEvent)) {
respondersForEvent = [];
registry.set(eventName, respondersForEvent);
}....
What i don't understand if this line of code affects in any way the magento functionalities? and what does this function actually do ?