Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

unexpected behavior when calling $('my_selector').tooltip() a second time on altered elements #349

Copy link
Copy link
Closed
@ewheeler

Description

@ewheeler
Issue body actions

if $('my_tooltips_selector').tooltip() is called more than once, during the subsequent calls to tooltip(), the code assumes that all of the instances still exist if any of the tooltip instances still
exist -- even if some of them no longer exist.

specifically, api will be true (https://github.com/jquerytools/jquerytools/blob/master/src/tooltip/tooltip.js#L322) if there are any existing tooltips, even if many items returned by this.data("tooltip") are null. so, if any parts of a page with tooltips are refreshed via ajax, new tooltips will not appear on the refreshed items even if they are still properly selected and called a second time by $('my_tooltips_selector').tooltip()

instead, each item in this.data("tooltip") should be examined so tooltip can be recreated if the item is null, and existing tooltips can be ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.