Skip to content

Developer Notes

zschaller27 edited this page Dec 11, 2019 · 3 revisions

Pointers

Since pointers aren't overtly specified in the source code, so there is a possibility to assign a var by reference (a shallow copy) rather than a deep copy. With Javascript the easiest method known right now is to convert the object to a JSON and then back. This will create a brand new object that has no pointers to the original object.

An example of this fix is shown in master commit #14 in the public/js/events.js file line 84.

Clone this wiki locally