Skip to content

Commit 93ce40e

Browse files
committed
rollback version.
1 parent f858366 commit 93ce40e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

jquery.simpleClone.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author KUCKLU
66
* @license Licensed under MIT (http://www.opensource.org/licenses/mit-license.php)
77
* @copyright (c) 2022 KUCKLU
8-
* @version 1.1.3
8+
* @version 1.1.2
99
*/
1010
(function ($) {
1111
'use strict';
@@ -26,8 +26,7 @@
2626
const count = $target.parent().children('.' + opts.targetClass).length + 1;
2727

2828
if (opts.cloneLimit === false || (typeof opts.cloneLimit === 'number' && count <= opts.cloneLimit)) {
29-
const clone = $target[0].cloneNode(true);
30-
let $clone = $(clone);
29+
let $clone = $target.clone(true);
3130
const rmvButton = document.createElement('button');
3231
rmvButton.type = 'button';
3332
rmvButton.className = opts.removeButtonClass === null ? $.fn.simpleClone.defaults.removeButtonClass : $.fn.simpleClone.defaults.removeButtonClass + ' ' + opts.removeButtonClass;

jquery.simpleClone.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.simpleClone.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)