diff --git a/examples/Games/Paperoids.html b/examples/Games/Paperoids.html index c187bb91..d39b1483 100644 --- a/examples/Games/Paperoids.html +++ b/examples/Games/Paperoids.html @@ -5,7 +5,6 @@ Paperoids - - + + - - -
FPS
- +
Game Over. Play again?
diff --git a/src/ui/View.js b/src/ui/View.js index 289df0dc..498070b7 100644 --- a/src/ui/View.js +++ b/src/ui/View.js @@ -74,7 +74,8 @@ var View = Base.extend(Callback, /** @lends View# */{ element.width = size.width; element.height = size.height; // TODO: Test this on IE: - if (PaperScope.hasAttribute(element, 'stats')) { + if (PaperScope.hasAttribute(element, 'stats') + && typeof Stats !== 'undefined') { this._stats = new Stats(); // Align top-left to the element var stats = this._stats.domElement,