xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
74 stars 25 forks source link

Event attributes trigger event twice in HTML encoding #92

Closed ksons closed 9 years ago

ksons commented 9 years ago

Using eventattributes such as

  <mesh src="teapot.json" onclick="console.log('Teapot');"></mesh>

trigger twice. This affects only HTML encoding and event attributes. Using addEventListener or the same scene in XHTML are not concerned.

csvurt commented 9 years ago

I've added checks to the mouse event attributes polyfill that will prevent it from adding a second event listener to the element in HTML documents.