From f9f8fdc3000042ba5b4504d91870dc9a32ef25eb Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Wed, 16 May 2012 01:00:22 -0700 Subject: Squashed master into dom-architecture Signed-off-by: Valerio Virgillito --- js/lib/drawing/world.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/lib/drawing/world.js') diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js index 7ce23921..0dde9af4 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js @@ -874,17 +874,17 @@ World.prototype.importObjectJSON = function( jObj, parentGeomObj ) switch (type) { case 1: - obj = new Rectangle(); + obj = Object.create(Rectangle, {}); obj.importJSON( jObj ); break; case 2: // circle - obj = new Circle(); + obj = Object.create(Circle, {}); obj.importJSON( jObj ); break; case 3: // line - obj = new Line(); + obj = Object.create(Line, {}); obj.importJSON( jObj ); break; -- cgit v1.2.3