Archived topic
Is GenerateDropdownMenu reentrant?
1 reply · Started by Jay Martin on June 10, 2017
Is the GenerateDropdownMenu function (in dropdown.js) reentrant insofar that it can be called multiple times? Or does one have to do a GenerateDropdownMenu.destroy(), then re-run the function on the content?
The reason I ask is that I am adding a menu tree to the end of the primary navigation menu and want to use your great handlers to effect the usual activities.
I'm currently using GP version 1.3.46. (Yeah yeah, I plan to upgrade Real Soon Now...)
Thanks, Tom!
You only have to destroy the instant if you're initializing it on an element that already has it. So if you were hooking into the function with a different element, you wouldn't have to destroy it first.