Skip to content

Commit

Permalink
added check for MatterTools to Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed May 5, 2014
1 parent c28c9cd commit 8b6b623
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions demo/js/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};

Expand Down

0 comments on commit 8b6b623

Please sign in to comment.