0
0
Fork 0
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:
liabru 2016-11-04 00:04:56 +00:00
parent 9856e3cd79
commit 54e7d9c4a2
4 changed files with 11 additions and 4 deletions

View file

@ -57,6 +57,8 @@
Matter.Plugin.register(MatterAttractors);
window.MatterAttractors = MatterAttractors;
if (typeof window !== 'undefined') {
window.MatterAttractors = MatterAttractors;
}
})();

View file

@ -41,6 +41,8 @@
Matter.Plugin.register(MatterGravity);
window.MatterGravity = MatterGravity;
if (typeof window !== 'undefined') {
window.MatterGravity = MatterGravity;
}
})();

View file

@ -65,6 +65,8 @@
Matter.Plugin.register(MatterWrap);
window.MatterWrap = MatterWrap;
if (typeof window !== 'undefined') {
window.MatterWrap = MatterWrap;
}
})();

View file

@ -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())