Popup Widget Events Passed as init Options are Immediately Executed #5958

Closed
tjvantoll opened this Issue May 2, 2013 · 1 comment

Projects

None yet

2 participants

@tjvantoll
Member

http://jsfiddle.net/tj_vantoll/phCVD/

For example if I pass an afteropen event on widget creation:

$( "<div></div>" ).popup({
    afteropen: function() { console.log( "afteropen" ); }
});

That handler will fire immediately, before the popup is actually opened. The same occurs for the other popup events.

@gabrielschulhof
Contributor

This seems to be already fixed in master: http://jsfiddle.net/phCVD/2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment