TimHeckel / meteor-bootboxjs

A meteor smart package for the bootstrap bootboxjs plugin
30 stars 19 forks source link

jQuery DOM Manipulation #21

Open boustanihani opened 9 years ago

boustanihani commented 9 years ago

The bootboxjs library uses jQuery for manipulating the DOM: https://github.com/TimHeckel/meteor-bootboxjs/blob/v4.3.0/lib/bootbox.js#L700

But shouldn't meteor users avoid manipulating the DOM by jQuery directly and rather use Blaze methods & templates?

That's why packages like peppelg:bootstrap-3-modal were created: https://atmospherejs.com/peppelg/bootstrap-3-modal

Notice how peppelg:bootstrap-3-modal uses Blaze methods: https://github.com/PeppeL-G/bootstrap-3-modal/blob/master/main.js

IMO, a bootboxjs wrapper for meteor should follow a similar approach...