jtsage/jquery-mobile-simpledialog — Issue #41: issue simpledialog2 callbackClose applyed twice
Author: bmcharek
Created: 2012-02-23 13:54:53+00:00
State: open

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.