0
0
Fork 0
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:
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); Matter.Plugin.register(MatterAttractors);
if (typeof window !== 'undefined') {
window.MatterAttractors = MatterAttractors; window.MatterAttractors = MatterAttractors;
}
})(); })();

View file

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

View file

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

View file

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