Fix attribute handling for extensions
The attributes handling for extensions didn't check for undefined
.
Furthermore, the event handler was unnecessarily set multiple times.
The attributes handling for extensions didn't check for undefined
.
Furthermore, the event handler was unnecessarily set multiple times.