#190 ✓resolved
Ondine

node has no properties

Reported by Ondine | June 26th, 2008 @ 04:23 PM

I use ExtJS with prototype adapter. When Ext creates a load event on a form with an upload field, the following error occurs "node has no property"

This should patch it:

Original:


 element: function(event) {
      var node = Event.extend(event).target;
      return Element.extend(node.nodeType == Node.TEXT_NODE ? node.parentNode : node);
    }

Patched:


 element: function(event) {
      var node = Event.extend(event).target;
      if( node ) return Element.extend(node.nodeType == Node.TEXT_NODE ? node.parentNode : node);
      else return false;
    }

Thank.

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

People watching this ticket

Pages