bitovi / documentjs

The sophisticated documentation engine
https://documentjs.com/
MIT License
598 stars 382 forks source link

Fix error with demo tags on generated documentation #293

Closed m-mujica closed 5 years ago

m-mujica commented 5 years ago

Why? The previous release of documentjs upgrade to can-control@3.x but it did not account for the fact that the DemoFrame control was instantiated with a jquery element which is no longer natively supported in 3.x; this cause can-event to try to call .addEventListener on a jquery-wrapped element which threw an error.

This is fixed by: Make sure the control is instantiated with an HtmlElement instead of a jquery-wrapped element.

Closes #287

screen shot 2019-01-09 at 4 05 24 pm