magento - Prototype Cannot call method 'get' of undefined -
the chrome console giving me error:
uncaught typeerror: cannot call method 'get' of undefined i search line , found this:
function _createresponder(element, eventname, handler) { 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); uncaught typeerror: cannot call method 'get' of undefined
if (object.isundefined(respondersforevent)) { respondersforevent = []; registry.set(eventname, respondersforevent); }
this seems happening when "null" element passed function on event binding. try adding following before second line (var registry = ...)
if (element === null) return; this prevent further processing within function, should not necessary when element null.
i haven't found issue doing on magento, please let me know if there problem using fix.
Comments
Post a Comment