Skip to content

Commit fac64dc

Browse files
committed
fix: make a11y init optional
1 parent 99e1a6f commit fac64dc

File tree

5 files changed

+6
-1863
lines changed

5 files changed

+6
-1863
lines changed

dist/verly.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/verly.bundle.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/accessibility/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
let ragdoll = verly.createRagdoll(600, 50);
5656
let hexagon = verly.createHexagon(250, 100, 8, 40, 1, 3);
5757

58+
// setup accessibility
59+
verly.entities.forEach(entity => entity.setupAccessibility());
60+
5861
function animate() {
5962
ctx.clearRect(0, 0, width, height);
6063

src/Verly.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class Verly {
118118
* @param {Entity} e
119119
*/
120120
addEntity(e) {
121-
e.setupAccessibility();
122121
this.entities.push(e);
123122
}
124123

0 commit comments

Comments
 (0)