Explorar o código

Add events copy with elements put in the wrapper

Jay Salvat %!s(int64=10) %!d(string=hai) anos
pai
achega
3e24e427ac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/vegas.js

+ 1 - 1
src/vegas.js

@@ -114,7 +114,7 @@
                         .css('padding-right',  this.$elmt.css('padding-right'));
                 }
 
-                $wrapper[0].innerHTML = this.elmt.innerHTML;
+                this.$elmt.clone(true).appendTo($wrapper);
                 this.elmt.innerHTML = '';
             }