draggable droppable stopped working with IE , when iframe child page renders 2nd time.

draggable droppable stopped working with IE , when iframe child page renders 2nd time.

Hi All I am getting following issue when using draggable droppable jquery-ui functionality.

sample code to re-produce :

Create following two pages for replication of issue.

[1]  Main Page  Code :

<!DOCTYPE html>
<html lang="en" xmlns=" http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script>

        function bindDrop() {

            $("iframe").each(function () {
                var iframe = $(this).contents();
                iframe.find('#iframe_container').droppable(
                     {
                         iframeFix: true,
                         drop: function (event, ui) { alert('dropped'); }
                     });
            });

            $('#drag').removeClass("ui-draggable-dragging");
            $('#drag').draggable({ iframeFix: true, revert: true });
        }

        $(function () {
            bindDrop();
        });

        function ReloadFrmDoc() {
            $('#frameMain').attr('src', 'iframe.htm');
        }
    </script>
</head>
<body>
    <iframe src="iframe.htm" id="frameMain"></iframe>
    <div style="width: 20px; height: 20px; background-color: #808080" id="drag">
    </div>
    <button id="reload" text="Reload" onclick="ReloadFrmDoc();" />
</body>
</html>


[2] Iframe child page " iframe.htm" Code 

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta charset="utf-8" />
 <title></title>
  <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
 <script>
     $(function () {
         window.parent.bindDrop();
     });
        
 </script>
</head>
<body>

  <div id="iframe_container" style=" width: 40px; height: 40px; background-color: #0094ff">
 </div>

</body>
</html>

[3] Open the Main page.

[4] try to drag drop. : first time it will work

[5] click on button and then try to drag drop. it will stop working.
 
Please help me.