From bdee343cf688f52176af9de8facc6e79ffa82264 Mon Sep 17 00:00:00 2001 From: Nick Riggs Date: Thu, 2 Apr 2015 11:49:42 -0500 Subject: [PATCH] The Debug object (IE only?) doesn't have a warn function. This is breaking IE. IE support console.warn --- src/Emitter.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Emitter.js b/src/Emitter.js index a978c999..c88b350a 100644 --- a/src/Emitter.js +++ b/src/Emitter.js @@ -370,9 +370,7 @@ { if(this.particleImages[i].baseTexture != this.particleImages[i - 1].baseTexture) { - if(window.Debug) - Debug.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL"); - else if(window.console) + if (window.console) console.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL"); break; } @@ -948,4 +946,4 @@ cloudkid.Emitter = Emitter; -}(cloudkid)); \ No newline at end of file +}(cloudkid));