Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:15:05+00:00 2026-06-15T22:15:05+00:00

The template has a destroyed event but that event is call when the template

  • 0

The template has a destroyed event but that event is call when the template is no longer in the dom.

I want to access the template before is take off the dom.

I want to close a tooltip before i can put another template in the dom and close old one.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:15:06+00:00Added an answer on June 15, 2026 at 10:15 pm

    destroyed is the only template teardown event that Spark exposes right now. I don’t think we actually guarantee whether it is called before the nodes are physically removed from the DOM, or after.

    I’m not totally sure, but it sounds like what you’re trying to do is to manually create a floating tooltip DIV after your template is created (I guess from a mouseover event handler or maybe even from created), and then manually remove it from the DOM when the template goes off the screen. Here some ways to solve this problem:

    • Instead of manually creating the tooltip DIV, put it inside the template, and change the class to show/hide it (maybe using a session variable that is set based on where the mouse is hovering.)

    • Hold a pointer to the tooltip DIV in a tooltip attribute on the template object. Then from removed, you can just remove this.tooltip.

    • Give the tooltip a unique id or class name, and use jquery or querySelectorAll (or Meteor’s not-yet-documented DomUtils.find) to find the element by id or class and remove it.

    If this isn’t sufficient, I’d be open to adding more functionality, but I’d need to better understand what you’re trying to do 🙂 The best way to request new functionality (other than writing it yourself :P) is to submit a GitHub issue, but it would need to come with a detailed example of what you’re trying to do and why the new hook is needed. Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a gnu makefile template that has served me well, but when I
The ASP.NET MVC 1.0 (final) project template has basic membership built in, but I
I have a velocity template which has a nested table. I want to align
In this link: http://css-tricks.com/snippets/jquery/jquery-plugin-template/ it has a line of code that says // Add
It seems that one template from Products.Five (manage_interfaces) has a bad i18n markup, making
i see that that template has some code to see if the client has
I want to add a [Required] attribute to my DateTime editor template so that
I have a django template which extends the base template that has code to
this code produces 17 error C2995: function template has already been defined; there was
Are there existing template extract libraries in either python or php? Perl has Template::Extract

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.