mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-30 10:20:52 -05:00
fix tests
This commit is contained in:
parent
9856e3cd79
commit
54e7d9c4a2
4 changed files with 11 additions and 4 deletions
|
@ -57,6 +57,8 @@
|
||||||
|
|
||||||
Matter.Plugin.register(MatterAttractors);
|
Matter.Plugin.register(MatterAttractors);
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
window.MatterAttractors = MatterAttractors;
|
window.MatterAttractors = MatterAttractors;
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
|
|
||||||
Matter.Plugin.register(MatterGravity);
|
Matter.Plugin.register(MatterGravity);
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
window.MatterGravity = MatterGravity;
|
window.MatterGravity = MatterGravity;
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -65,6 +65,8 @@
|
||||||
|
|
||||||
Matter.Plugin.register(MatterWrap);
|
Matter.Plugin.register(MatterWrap);
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
window.MatterWrap = MatterWrap;
|
window.MatterWrap = MatterWrap;
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -162,7 +162,8 @@ var getDemoNames = function() {
|
||||||
skip = [
|
skip = [
|
||||||
'terrain', 'svg', 'concave',
|
'terrain', 'svg', 'concave',
|
||||||
'slingshot', 'views', 'raycasting',
|
'slingshot', 'views', 'raycasting',
|
||||||
'events', 'collisionFiltering', 'sleeping'
|
'events', 'collisionFiltering', 'sleeping',
|
||||||
|
'attractors'
|
||||||
];
|
];
|
||||||
|
|
||||||
$('#demo-select option', fs.readFileSync('demo/index.html').toString())
|
$('#demo-select option', fs.readFileSync('demo/index.html').toString())
|
||||||
|
|
Loading…
Reference in a new issue