[Support request] Is GenerateDropdownMenu reentrant?

Home Forums Support Is GenerateDropdownMenu reentrant?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #331737
    Jay Martin

    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!

    #331794
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.