Open ianthedev opened 11 years ago
Upvote.
I met a problem: after an element is replaced by replaceWith
, the new element has no hover effect because selectivizr doesn't re-apply on the new element. I have to manually attach hover function on the new element.
Please provide a function that I can re-invoke selectivizr after some element substitution using js.
Sometimes we change HTML elements' structure or add new elements by JavaScripting. In such cases, Selectivizr may not work for those elements. So could we have a mechanism to run Selectivizr at a specific time? Such as after all elements have been modified by JavaScripting.
For example:
Then we could add the following line at the end of
$(document).ready(function() { })
(after all DOM modification codes) to run Selectivizr.