aboutsummaryrefslogtreecommitdiff
path: root/js/lib/drawing
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-xjs/lib/drawing/world.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js
index 23e24347..b46a002b 100755
--- a/js/lib/drawing/world.js
+++ b/js/lib/drawing/world.js
@@ -993,17 +993,17 @@ World.prototype.importObjectJSON = function( jObj, parentGeomObj )
993 switch (type) 993 switch (type)
994 { 994 {
995 case 1: 995 case 1:
996 obj = new Rectangle(); 996 obj = Object.create(Rectangle, {});
997 obj.importJSON( jObj ); 997 obj.importJSON( jObj );
998 break; 998 break;
999 999
1000 case 2: // circle 1000 case 2: // circle
1001 obj = new Circle(); 1001 obj = Object.create(Circle, {});
1002 obj.importJSON( jObj ); 1002 obj.importJSON( jObj );
1003 break; 1003 break;
1004 1004
1005 case 3: // line 1005 case 3: // line
1006 obj = new Line(); 1006 obj = Object.create(Line, {});
1007 obj.importJSON( jObj ); 1007 obj.importJSON( jObj );
1008 break; 1008 break;
1009 1009