update to v2.2.0
add library version getter fix demo issues
This commit is contained in:
16
dist/fluent-dom-esm.js
vendored
16
dist/fluent-dom-esm.js
vendored
@@ -4,22 +4,22 @@ const isHTMLElement = (value) => !!value.nodeType;
|
||||
const isNumber = (value) => typeof value === "number";
|
||||
const isString = (value) => typeof value === "string";
|
||||
/**
|
||||
* fluent-dom-esm v2.1.0
|
||||
* fluent-dom-esm v2.2.0
|
||||
*
|
||||
* Fluent DOM Manipulation, adapted to ESM and cranked up to v2.1(.0).
|
||||
*
|
||||
* https://git.itsericwoodward.com/eric/fluent-dom-esm
|
||||
*
|
||||
* v2.1.0 Copyright (c) 2025 Eric Woodward
|
||||
* v2.2.0 Copyright (c) 2025 Eric Woodward
|
||||
* Original copyright (c) 2009 Tommy Montgomery (https://glacius.tmont.com/articles/fluent-dom-manipulation-in-javascript)
|
||||
*
|
||||
* Released under the WTFPL (Do What the Fuck You Want to Public License)
|
||||
*
|
||||
* @author Eric Woodward (v2.1.0 update)
|
||||
* @author Eric Woodward (v2 update)
|
||||
* @author Tommy Montgomery (original)
|
||||
* @license http://sam.zoy.org/wtfpl/
|
||||
*/
|
||||
const APP_VERSION = "2.1.0";
|
||||
const APP_VERSION = "2.2.0";
|
||||
const fluentDomEsm = (function() {
|
||||
const FluentDom = function(nodeOrQuerySelector) {
|
||||
if (typeof nodeOrQuerySelector !== "string")
|
||||
@@ -28,11 +28,14 @@ const fluentDomEsm = (function() {
|
||||
f.querySelector(nodeOrQuerySelector);
|
||||
return f;
|
||||
};
|
||||
FluentDom.create = FluentDom.c = function(tagName) {
|
||||
FluentDom.c = FluentDom.create = function(tagName) {
|
||||
const f = new FluentDomInternal();
|
||||
f.create(tagName);
|
||||
return f;
|
||||
};
|
||||
FluentDom.v = FluentDom.version = function() {
|
||||
return APP_VERSION;
|
||||
};
|
||||
const FluentDomInternal = function(node) {
|
||||
let root = node || null;
|
||||
this.fluentDom = APP_VERSION;
|
||||
@@ -146,6 +149,9 @@ const fluentDomEsm = (function() {
|
||||
root.removeEventListener(...props);
|
||||
return this;
|
||||
};
|
||||
this.v = this.version = function() {
|
||||
return APP_VERSION;
|
||||
};
|
||||
};
|
||||
return FluentDom;
|
||||
})();
|
||||
|
Reference in New Issue
Block a user