diff --git a/Examples/javascript/class/Makefile b/Examples/javascript/class/Makefile index 180e99cae..507289ed1 100755 --- a/Examples/javascript/class/Makefile +++ b/Examples/javascript/class/Makefile @@ -1,6 +1,6 @@ TOP = ../.. SWIG = $(TOP)/../preinst-swig -CXXSRCS = example.cpp +CXXSRCS = example.cxx JS_SCRIPT = runme.js TARGET = example INTERFACE = example.i diff --git a/Examples/javascript/class/runme.js b/Examples/javascript/class/runme.js index 922876fc5..50261d868 100755 --- a/Examples/javascript/class/runme.js +++ b/Examples/javascript/class/runme.js @@ -21,15 +21,10 @@ c.y = 30; s.x = -10; s.y = 5; -print("\nHere is their current position:"); -print("Circle = (" + c.x + "," + c.y + ")"); -print("Square = (" + s.x + "," + s.y + ")"); - print("\nHere is their new position:"); print("Circle = (" + c.x + "," + c.y + ")"); print("Square = (" + s.x + "," + s.y + ")"); - // ----- Call some methods ----- print("\nHere are some properties of the shapes:"); print("Circle:");