From 2350abf3d49b001b2463e2d44a0784c0c862b69c Mon Sep 17 00:00:00 2001 From: William Ferguson <wferguson@scottlogic.com> Date: Fri, 25 Jul 2014 11:16:34 +0100 Subject: [PATCH] Fix: PID 17828009 23322186 Issues https://github.com/WPFerg/scratch-html5/issues/6 https://github.com/WPFerg/scratch-html5/issues/5 --- js/IO.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/IO.js b/js/IO.js index 827ddb3..99db31f 100644 --- a/js/IO.js +++ b/js/IO.js @@ -112,7 +112,7 @@ IO.prototype.makeObjects = function() { } return newSprite; } - if (obj.objName) { // sprite + if (typeof(obj.objName) === "string") { // sprite newSprite = createSprite(obj); sprite = newSprite; } else {