mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50: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);
|
||||
|
||||
window.MatterAttractors = MatterAttractors;
|
||||
if (typeof window !== 'undefined') {
|
||||
window.MatterAttractors = MatterAttractors;
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
@ -41,6 +41,8 @@
|
|||
|
||||
Matter.Plugin.register(MatterGravity);
|
||||
|
||||
window.MatterGravity = MatterGravity;
|
||||
if (typeof window !== 'undefined') {
|
||||
window.MatterGravity = MatterGravity;
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
@ -65,6 +65,8 @@
|
|||
|
||||
Matter.Plugin.register(MatterWrap);
|
||||
|
||||
window.MatterWrap = MatterWrap;
|
||||
if (typeof window !== 'undefined') {
|
||||
window.MatterWrap = MatterWrap;
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
@ -162,7 +162,8 @@ var getDemoNames = function() {
|
|||
skip = [
|
||||
'terrain', 'svg', 'concave',
|
||||
'slingshot', 'views', 'raycasting',
|
||||
'events', 'collisionFiltering', 'sleeping'
|
||||
'events', 'collisionFiltering', 'sleeping',
|
||||
'attractors'
|
||||
];
|
||||
|
||||
$('#demo-select option', fs.readFileSync('demo/index.html').toString())
|
||||
|
|
Loading…
Reference in a new issue