Skip to content

Commit ca9f0fe

Browse files
Bumped version to 2.3.7
1 parent 175be3b commit ca9f0fe

6 files changed

Lines changed: 104 additions & 100 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ An **85%** gain in size reduction. If you need a smaller bundle, we support [par
1919

2020
## Usage
2121

22-
Get cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/2.3.3/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@2.3.3/dist/cash.min.js) and use it like this:
22+
Get cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/2.3.7/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@2.3.7/dist/cash.min.js) and use it like this:
2323

2424
```html
25-
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/2.3.3/cash.min.js"></script>
25+
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/2.3.7/cash.min.js"></script>
2626
<script>
2727
$(function () {
2828
$('html').addClass ( 'dom-loaded' );

dist/cash.esm.js

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -340,29 +340,7 @@ fn.removeClass = function (cls) {
340340
// @optional ./remove_prop.js
341341
// @optional ./toggle_class.js
342342
// @require ./cash.js
343-
// @require ./variables.js
344-
// @require ./type_checking.js
345-
346-
347-
var fragment;
348-
349-
function initFragment() {
350-
if (fragment) return;
351-
fragment = doc.implementation.createHTMLDocument('');
352-
var base = fragment.createElement('base');
353-
base.href = doc.location.href;
354-
fragment.head.appendChild(base);
355-
}
356-
357-
function parseHTML(html) {
358-
//FIXME: `<tr></tr>` can't be parsed with this
359-
initFragment();
360-
if (!isString(html)) html = '';
361-
fragment.body.innerHTML = html;
362-
return slice.call(fragment.body.childNodes);
363-
}
364343

365-
cash.parseHTML = parseHTML; // @require ./cash.js
366344

367345
function unique(arr) {
368346
return arr.filter(function (item, index, self) {
@@ -376,21 +354,7 @@ cash.unique = unique; // @require core/cash.js
376354

377355
fn.add = function (selector, context) {
378356
return cash(unique(this.get().concat(cash(selector, context).get())));
379-
}; // @optional ./camel_case.js
380-
// @optional ./each.js
381-
// @optional ./export.js
382-
// @optional ./extend.js
383-
// @optional ./find.js
384-
// @optional ./get_compare_function.js
385-
// @optional ./get_split_values.js
386-
// @optional ./guid.js
387-
// @optional ./matches.js
388-
// @optional ./parse_html.js
389-
// @optional ./unique.js
390-
// @optional ./variables.js
391-
// @require ./cash.js
392-
// @require ./type_checking.js
393-
// @require core/variables.js
357+
}; // @require core/variables.js
394358

395359

396360
function computeStyle(ele, prop, isVariable) {
@@ -966,8 +930,46 @@ fn.detach = function () {
966930
ele.parentNode.removeChild(ele);
967931
}
968932
});
969-
}; // @require core/cash.js
933+
}; // @require ./cash.js
934+
// @require ./variables.js
935+
// @require ./type_checking.js
936+
// @require collection/get.js
937+
// @require manipulation/detach.js
938+
939+
940+
var fragment;
941+
942+
function initFragment() {
943+
if (fragment) return;
944+
fragment = doc.implementation.createHTMLDocument('');
945+
var base = fragment.createElement('base');
946+
base.href = doc.location.href;
947+
fragment.head.appendChild(base);
948+
}
970949

950+
function parseHTML(html) {
951+
//FIXME: `<tr></tr>` can't be parsed with this
952+
initFragment();
953+
if (!isString(html)) html = '';
954+
fragment.body.innerHTML = html;
955+
return $(fragment.body.childNodes).detach().get();
956+
}
957+
958+
cash.parseHTML = parseHTML; // @optional ./camel_case.js
959+
// @optional ./each.js
960+
// @optional ./export.js
961+
// @optional ./extend.js
962+
// @optional ./find.js
963+
// @optional ./get_compare_function.js
964+
// @optional ./get_split_values.js
965+
// @optional ./guid.js
966+
// @optional ./matches.js
967+
// @optional ./parse_html.js
968+
// @optional ./unique.js
969+
// @optional ./variables.js
970+
// @require ./cash.js
971+
// @require ./type_checking.js
972+
// @require core/cash.js
971973

972974
fn.empty = function () {
973975
var ele = this[0];

dist/cash.js

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -351,29 +351,7 @@ fn.removeClass = function (cls) {
351351
// @optional ./remove_prop.js
352352
// @optional ./toggle_class.js
353353
// @require ./cash.js
354-
// @require ./variables.js
355-
// @require ./type_checking.js
356-
357-
358-
var fragment;
359-
360-
function initFragment() {
361-
if (fragment) return;
362-
fragment = doc.implementation.createHTMLDocument('');
363-
var base = fragment.createElement('base');
364-
base.href = doc.location.href;
365-
fragment.head.appendChild(base);
366-
}
367-
368-
function parseHTML(html) {
369-
//FIXME: `<tr></tr>` can't be parsed with this
370-
initFragment();
371-
if (!isString(html)) html = '';
372-
fragment.body.innerHTML = html;
373-
return slice.call(fragment.body.childNodes);
374-
}
375354

376-
cash.parseHTML = parseHTML; // @require ./cash.js
377355

378356
function unique(arr) {
379357
return arr.filter(function (item, index, self) {
@@ -387,21 +365,7 @@ cash.unique = unique; // @require core/cash.js
387365

388366
fn.add = function (selector, context) {
389367
return cash(unique(this.get().concat(cash(selector, context).get())));
390-
}; // @optional ./camel_case.js
391-
// @optional ./each.js
392-
// @optional ./export.js
393-
// @optional ./extend.js
394-
// @optional ./find.js
395-
// @optional ./get_compare_function.js
396-
// @optional ./get_split_values.js
397-
// @optional ./guid.js
398-
// @optional ./matches.js
399-
// @optional ./parse_html.js
400-
// @optional ./unique.js
401-
// @optional ./variables.js
402-
// @require ./cash.js
403-
// @require ./type_checking.js
404-
// @require core/variables.js
368+
}; // @require core/variables.js
405369

406370

407371
function computeStyle(ele, prop, isVariable) {
@@ -977,8 +941,46 @@ fn.detach = function () {
977941
ele.parentNode.removeChild(ele);
978942
}
979943
});
980-
}; // @require core/cash.js
944+
}; // @require ./cash.js
945+
// @require ./variables.js
946+
// @require ./type_checking.js
947+
// @require collection/get.js
948+
// @require manipulation/detach.js
949+
950+
951+
var fragment;
952+
953+
function initFragment() {
954+
if (fragment) return;
955+
fragment = doc.implementation.createHTMLDocument('');
956+
var base = fragment.createElement('base');
957+
base.href = doc.location.href;
958+
fragment.head.appendChild(base);
959+
}
981960

961+
function parseHTML(html) {
962+
//FIXME: `<tr></tr>` can't be parsed with this
963+
initFragment();
964+
if (!isString(html)) html = '';
965+
fragment.body.innerHTML = html;
966+
return $(fragment.body.childNodes).detach().get();
967+
}
968+
969+
cash.parseHTML = parseHTML; // @optional ./camel_case.js
970+
// @optional ./each.js
971+
// @optional ./export.js
972+
// @optional ./extend.js
973+
// @optional ./find.js
974+
// @optional ./get_compare_function.js
975+
// @optional ./get_split_values.js
976+
// @optional ./guid.js
977+
// @optional ./matches.js
978+
// @optional ./parse_html.js
979+
// @optional ./unique.js
980+
// @optional ./variables.js
981+
// @require ./cash.js
982+
// @require ./type_checking.js
983+
// @require core/cash.js
982984

983985
fn.empty = function () {
984986
var ele = this[0];

0 commit comments

Comments
 (0)