Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

issue simpledialog2 callbackClose applyed twice #41

Closed
bmcharek opened this issue Feb 23, 2012 · 0 comments
Closed

issue simpledialog2 callbackClose applyed twice #41

bmcharek opened this issue Feb 23, 2012 · 0 comments

Comments

@bmcharek
Copy link

Hi Jonathan, I am using simpledialog2 already for two days. Works pretty nice. However I have this issue with the callbackClose. This is called twice at clicking a button. For instance if in your example I just add a simple log, it appears twice. Could you please have a look at it?
All I did is just:
callbackClose: function () {
console.log( mylog.text );
}

cheers

PS: I figured that the followin test actually messes stuff up in my case. Line 290:
retty = self.options.callbackClose.apply(self, self.options.callbackCloseArgs);
since it causes the callback to be launched. For the moment I turned it off (I know it is not clever) I cannot afford in my specific case to apply my callback twice.

PPS: I will make a new issue.

@jtsage jtsage closed this as completed in 1b0ea78 Feb 23, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants