Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Ermag

Hello everyone,

Is it possible without modifying the Impact core to much to do something like this:
ig2 = ig;
ig2.main(etc);

Thank you!

1 decade ago by stahlmanDesign

I assume you want to make a separate clone of ig.

Your example is just making a pointer to ig (ig2 = ig just means they are both ig. Change something in ig2 and you'll see it also changed in ig)

see this to clone an object in javascript
Page 1 of 1
« first « previous next › last »