Fix issue with displaying Stats.

This commit is contained in:
Jürg Lehni 2013-11-04 11:42:25 +01:00
parent dba5a8a9e7
commit 67d969ba56

View file

@ -75,7 +75,7 @@ var View = Base.extend(Callback, /** @lends View# */{
element.height = size.height;
// TODO: Test this on IE:
if (PaperScope.hasAttribute(element, 'stats')
&& typeof Stats === 'object') {
&& typeof Stats !== 'undefined') {
this._stats = new Stats();
// Align top-left to the element
var stats = this._stats.domElement,