diff options
author | hwc487 | 2012-05-11 13:52:55 -0700 |
---|---|---|
committer | hwc487 | 2012-05-11 13:52:55 -0700 |
commit | 137bfc9d4c41cc918d969565bec28a834fe10472 (patch) | |
tree | e9fa109fc65218f45e386df48b713ff5858f3d62 /js/lib/drawing | |
parent | d21aaca3d7093b6af968b7f9f764ab54e004f02b (diff) | |
parent | 27f4cacb39de1c2e3910748dadc9fc16d0655480 (diff) | |
download | ninja-137bfc9d4c41cc918d969565bec28a834fe10472.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Conflicts:
js/lib/geom/geom-obj.js
js/lib/geom/rectangle.js
js/tools/TagTool.js
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-x | js/lib/drawing/world.js | 6 |
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 | ||