seiyria / bootstrap-slider

A slider control for Bootstrap 3 & 4.
http://seiyria.github.io/bootstrap-slider/
Other
3k stars 1.14k forks source link

Duplicate call to _layout() in relayout function #865

Closed jespirit closed 5 years ago

jespirit commented 5 years ago

Issues

NOTE: Before filing a new issue, please search through the open issues list and check to see if an existing issue already exists that describes your problem. If so, leave a comment within that issue with the checklist items described below.

Please make sure you include the following in your issue report where appropriate:

https://github.com/seiyria/bootstrap-slider/blob/9b9deea6d70ad068fa2aa89f7b6c27c99e09a7d9/src/js/bootstrap-slider.js#L1045-L1049

https://github.com/seiyria/bootstrap-slider/blob/9b9deea6d70ad068fa2aa89f7b6c27c99e09a7d9/src/js/bootstrap-slider.js#L1419-L1424

The function relayout() actually makes two (2) calls to _layout()

relayout()
  -> _resize() -> _layout()
  -> _layout()  // duplicate call