mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
260 stars 182 forks source link

memory leaks problem #158

Open lkiarest opened 8 years ago

lkiarest commented 8 years ago

hi, Now we are developing an SPA application, and found some memory leaks when we destroy and reinit datetimepicker again. First the DOM nodes that newly generated would not be removed(the div with class name of "datepicker" and it's parent node). I have tried to removed this DOM nodes in "destroy" method. But there are also many "closure" leaks, so I think the binding events(click, mouseover .etc) should also be unbound before we remove this DOM nodes. Could you please help to check it ? thanks very much.