montagejs / collections

This package contains JavaScript implementations of common data structures with idiomatic interfaces.
http://www.collectionsjs.com
Other
2.09k stars 185 forks source link

PropertyChanges.prototype.getOwnPropertyChangeDescriptor shouldn't create internal structure #226

Open marchant opened 4 years ago

marchant commented 4 years ago

This should be done when a listener is created as this is much more rare than property changes that call PropertyChanges.prototype.getOwnPropertyChangeDescriptor every time. This is especially worse for array's indexes treated as properties