Make Event.stopObserving return element in all cases. [#810 state:resolved]
This commit is contained in:
parent
bf8e404805
commit
af89847a4f
|
@ -617,7 +617,7 @@
|
|||
function stopObserving(element, eventName, handler) {
|
||||
element = $(element);
|
||||
|
||||
var registry = Element.retrieve(element, 'prototype_event_registry')
|
||||
var registry = Element.retrieve(element, 'prototype_event_registry');
|
||||
if (!registry) return element;
|
||||
|
||||
if (!eventName) {
|
||||
|
|
Loading…
Reference in New Issue