Stereobit / dragend

dragend JS – a touch ready, full responsive, content swipe script
http://stereobit.github.com/dragend/
MIT License
486 stars 113 forks source link

Children events removed #85

Open kuanglijun312 opened 8 years ago

kuanglijun312 commented 8 years ago

Hello,your code use innerHTML to wrap children,so events been removed,

      this.pageContainer.innerHTML = container.cloneNode(true).innerHTML;
      container.innerHTML = "";
      container.appendChild( this.pageContainer );

; I think use this:

      var children = container.children;
      for(var i = 0,len = children.length; i < len ;i++) {
        this.pageContainer.appendChild(children[i]);
      }
      container.appendChild(this.pageContainer);