Diokuz / baron

Native scroll with custom scrollbar
MIT License
776 stars 124 forks source link

Deprecate multi-instances support #142

Closed Diokuz closed 7 years ago

Diokuz commented 8 years ago

It is hard to support such thing:

<div class="scroller">...</div>
<div class="scroller">...</div>
<div class="scroller">...</div>
$('.scroller').baron();

If you use baron 2.x.x, all scrollers will be inited by baron. Just for one baron() call.

I plan to deprecate it in baron 3.x.x, and completely drop in baron 4.x.x. In baron 3.x.x there will be a deprecation warning, and (maybe) new all param, which by default will be false. In baron 4.x.x this param will transform to unchangeable constant false.

It is the same as querySelector differs from querySelectorAll.

Anybody use this feature?

Diokuz commented 7 years ago

Removed in baron@3.0.0