Skip to content

Commit 2393c4c

Browse files
Bumped version to 2.3.6
1 parent 4a9605c commit 2393c4c

5 files changed

Lines changed: 30 additions & 16 deletions

File tree

dist/cash.esm.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,19 @@ fn.detach = function () {
966966
ele.parentNode.removeChild(ele);
967967
}
968968
});
969+
}; // @require core/cash.js
970+
971+
972+
fn.empty = function () {
973+
var ele = this[0];
974+
975+
if (ele) {
976+
while (ele.firstChild) {
977+
ele.removeChild(ele.firstChild);
978+
}
979+
}
980+
981+
return this;
969982
};
970983

971984
function insertElement(ele, child, prepend) {
@@ -1023,12 +1036,6 @@ fn.html = function (content) {
10231036
ele.innerHTML = source;
10241037
});
10251038
}; // @require core/cash.js
1026-
// @require ./html.js
1027-
1028-
1029-
fn.empty = function () {
1030-
return this.html('');
1031-
}; // @require core/cash.js
10321039
// @require collection/each.js
10331040

10341041

dist/cash.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,19 @@ fn.detach = function () {
977977
ele.parentNode.removeChild(ele);
978978
}
979979
});
980+
}; // @require core/cash.js
981+
982+
983+
fn.empty = function () {
984+
var ele = this[0];
985+
986+
if (ele) {
987+
while (ele.firstChild) {
988+
ele.removeChild(ele.firstChild);
989+
}
990+
}
991+
992+
return this;
980993
};
981994

982995
function insertElement(ele, child, prepend) {
@@ -1034,12 +1047,6 @@ fn.html = function (content) {
10341047
ele.innerHTML = source;
10351048
});
10361049
}; // @require core/cash.js
1037-
// @require ./html.js
1038-
1039-
1040-
fn.empty = function () {
1041-
return this.html('');
1042-
}; // @require core/cash.js
10431050
// @require collection/each.js
10441051

10451052

dist/cash.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.

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cash-dom",
33
"description": "An absurdly small jQuery alternative for modern browsers.",
4-
"version": "2.3.5",
4+
"version": "2.3.6",
55
"license": "MIT",
66
"main": "./dist/cash.js",
77
"module": "./dist/cash.esm.js",

0 commit comments

Comments
 (0)