-
Notifications
You must be signed in to change notification settings - Fork 561
Description
Hi -
I apologize if this is not the right place to ask questions.
I'm implementing a custom filtering capabilities (advanced search) to my data grids (for the curious ones, I'm using DataTables). I'm loving jQuery-QueryBuilder so far and gradually learning to control it to my liking using its extensive API (although, I find the API docs a little too confusing or inadequate at some places).
That's about the background. I was just wondering whether initializing and destroying the QueryBuilder several times can likely pollute the DOM by attaching event listeners to any of the elements higher on the DOM tree or the document itself. I'm worried because, I use a bootstrap modal to initialize the queryBuilder on show and destroy on hide. So, this can happen a couple of times on the same page (because it is used for filtering like I said above).
A quick glance at the DOM tree suggested (I may be wrong) that the plugin operates within it's own limited DOM scope and is unlikely to cause problems, but I just wanted to be sure.
Also, is there a documented list of events/properties/attributes that are manipulated/attached during the lifespan (from init till destroy) of QueryBuilder?
Cheers!