#1223 ✓wont_fix
Victor

Consistent usage of prototype_event_registry

Reported by Victor | March 10th, 2011 @ 11:23 AM

Usage of prototype_event_registry is inconsistent now. In function _createResponder:

var registry = Element.retrieve(element, 'prototype_event_registry');
if (Object.isUndefined(registry)) {
  ...
}

In function stopObserving:

var registry = Element.retrieve(element, 'prototype_event_registry');
if (!registry) return element;

Either strict check for undefined value or relaxed check for value coercing to false (0/false/null/undefined/empty string etc.) should be used in both places.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Pages