From 8b6b623369f2e2396f028222cccf91b2d8f60255 Mon Sep 17 00:00:00 2001 From: liabru Date: Mon, 5 May 2014 18:18:15 +0100 Subject: [PATCH] added check for MatterTools to Demo --- demo/js/Demo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/demo/js/Demo.js b/demo/js/Demo.js index 5717af8..36ef2ba 100644 --- a/demo/js/Demo.js +++ b/demo/js/Demo.js @@ -19,8 +19,10 @@ Query = Matter.Query; // MatterTools aliases - var Gui = MatterTools.Gui, - Inspector = MatterTools.Inspector; + if (window.MatterTools) { + var Gui = MatterTools.Gui, + Inspector = MatterTools.Inspector; + } var Demo = {};