CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

Refactor: remove polyfill #847

Closed tobiasengelhardt closed 4 years ago

tobiasengelhardt commented 4 years ago

angular-tree-components adds polyfill for closest to the bundle. Angular CLI does not add an option to add polyfill to a library and there are good reasons why a library shouldn't add polyfill. But the angular-tree-component polyfill for closest seems to not even be needed at all. There are no closest calls in the lib folder. It was used starting in 1.1.9 in the tree.component.ts onMousedown. That part is now very different. Because IE11 is somehow still a thing a new configuration for an es5 build should be added so the example app can be tested there.