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 6196447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:38:43+00:00 2026-05-24T03:38:43+00:00

This delegate event is firing twice (not always, sometimes). client.bindButtonClickFunction = function(){ $(#client-plugin).delegate(.client-button, click,

  • 0

This delegate event is firing twice (not always, sometimes).

client.bindButtonClickFunction = function(){

    $("#client-plugin").delegate(".client-button", "click", function()
    {
        var id = this.id.split('-')[2];
        client.retrieveMessageByID(id);
    });
};

I call the function after inserting all the “.client-button”‘s.

Any thoughts on how to stop it? I tried event.stopPropagation(), and also undelegating and re-delegating to no avail.

This is in Chrome, as part of a Chrome plugin.

  • 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-05-24T03:38:44+00:00Added an answer on May 24, 2026 at 3:38 am

    Depending on how you register the delegate, you might want to do:

    $("#client-plugin").undelegate('event').delegate('event', ...)
    

    Also, try to add a return false from your handler.

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

Sidebar

Related Questions

I know event delegation in this form: anItem = Y.one('ul#id'); anItem.delegate('click', aFunction, 'selector'); What
Compiler Error Keyword 'this' is not available in the current context delegate void CallBack(int
I can define an event like this(declared function): MyElement.Keyup +=MyDeclaredFunction I can also define
I was just browsing and came across this question: Action vs delegate event The
Most .NET stock events are have this signature: delegate void SomethingSomething(SomethingEventArgs e); event SomethingSomething
I have this delegate in C#. public delegate string ACSharpDelegate(string message); How would I
Right now, I have to do this private delegate void set(int obj); //declare the
I have this method: private delegate void watcherReader(StreamReader sr); private void watchProc(StreamReader sr) {
I like my code formatted like this: WithDataContext.Execute( delegate(DataContext dataContext) { // code goes
I have this code: UIActionSheet *actionSheet = [[[UIActionSheet alloc] initWithTitle:@Illustrations delegate:self cancelButtonTitle:@Cancel destructiveButtonTitle:nil otherButtonTitles:

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.