4 ms·
Thanks. > Instead of using prototypes and functions shared among all instances of the same type of object, it uses closures for each instance. So, is this gen
by wwwtyro 14y ago
Thanks.
> Instead of using prototypes and functions shared among all instances of the same type of object, it uses closures for each instance.
So, is this generally considered a poor practice? I usually only use prototypes and shared functions when I am going to be instantiating the same type of object many times (when doing lots of vector math, for example).