wiggin/jQuery-Easy-Confirm-Dialog-plugin — Issue #3: Bug in rebindHandlers
Author: powerpoint
Created: 2011-11-20 13:06:19+00:00
State: open

Hi,

I guess I found a bug, which only occurs if you use easyconfirm i.e. in an ajax environment , if you don't send a form and reload the part where the easyconfirm also refreshs. I changed the function rebindHandlers and corrected the target.bind which will take the handlers function not the object.

// Re-bind old events
var rebindHandlers = function() {
if (target._handlers !== undefined) {
jQuery.each(target._handlers,function() {
$target.bind(type, this.handler);
});
}
};

By the way I really appreciate this simple but nice add on.