Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

celia

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celia - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

2

_internal/_dom/_style.js
import { vendorPropName } from './_domConsts';
import isNil from '../../isNil';
import camelCase from '../../camelCase';

@@ -7,2 +8,3 @@ const cssProps = {};

export default function (elem, origName, value) {
origName = camelCase(origName);
let style = elem.style;

@@ -9,0 +11,0 @@ origName = cssProps[origName] || (cssProps[origName] = vendorPropName(origName) || origName);

2

dist/array.c.js
/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -478,2 +478,3 @@ * Released under the MIT License.

function style (elem, origName, value) {
origName = camelCase(origName);
var style = elem.style;

@@ -517,2 +518,9 @@ origName = cssProps[origName] || (cssProps[origName] = vendorPropName(origName) || origName);

function objSetter(dom, obj) {
forOwn(obj, function (val, key) {
setter(dom, key, val);
});
return dom;
}
/**

@@ -525,5 +533,6 @@ * 读取或者设置属性

function css (dom, key, val) {
key = camelCase(key);
return isUndefined(val) ?
getter(dom, key) :
isObject(key) ?
objSetter(dom, key) :
getter(dom, key) :
setter(dom, key, val);

@@ -530,0 +539,0 @@ }

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -482,2 +482,3 @@ * Released under the MIT License.

function style (elem, origName, value) {
origName = camelCase(origName);
var style = elem.style;

@@ -521,2 +522,9 @@ origName = cssProps[origName] || (cssProps[origName] = vendorPropName(origName) || origName);

function objSetter(dom, obj) {
forOwn(obj, function (val, key) {
setter(dom, key, val);
});
return dom;
}
/**

@@ -529,5 +537,6 @@ * 读取或者设置属性

function css (dom, key, val) {
key = camelCase(key);
return isUndefined(val) ?
getter(dom, key) :
isObject(key) ?
objSetter(dom, key) :
getter(dom, key) :
setter(dom, key, val);

@@ -534,0 +543,0 @@ }

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var n,e;n=this,e=function(){"use strict";function o(n){return null==n}function f(n,e){return e?n.bind(e):n}function u(n,e,t,r,o){for(var u=f(r,o),i=e,a=void 0;!1!==a&&i<t;i++)a=u(n[i],i,n)}function i(n,e,t){var r=f(e,t);for(var o in n)if(n.hasOwnProperty(o)&&!1===r(n[o],o,n))break}function a(n){return!o(n)&&"object"==typeof n}function c(n,e,t){return a(n)&&i(n,e,t)}var t=Object.assign||function(n){if(o(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return u(arguments,1,arguments.length,function(n){c(n,function(n,e){t[e]=n})}),t};function l(n){return void 0===n}function r(n,e){return e in n&&(e="c$"+e),e}var n,e,d=Array.prototype;function p(n,e){return n[n.length]=e,n}e=function(n){return p(this,n)},n=r(d,n="append"),d[n]=e;var s,v=window.Element.prototype,m=(s=v,function(n,e){n=r(s,n),!l(e.value)&&l(e.writable)&&(e.writable=!0),Object.defineProperty(s,n,t({enumerable:!1,configurable:!0},e))}),h=/^\s*<(\w+|!)[^>]*>/,y=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,g=/[^\x20\t\r\n\f]+/g;function b(n){return"string"==typeof n}function w(n){return Array.isArray(n)?n:b(n)&&n.match(g)||[]}function C(n,e,t){u(n,0,n.length,e,t)}function E(n,e,t){var r=w(n.className),o=r.concat();C(e,function(n){o=t(o,n)}),(r=r.join(" "))!==(o=o.join(" "))&&(n.className=o)}var x=function(n){this.elem=n};function P(n){return n&&(-1<n.length?n[0]:n)}function A(n,e,t){var r,o=n.length;return t(o?(u(n,0,r=o-1,e),n[r]):n),n}function N(n,e){return n&&(n.length&&!function(n){return n&&n===n.window}(n)?C(n,e):e(n)),n}function S(n,r){C(n.childNodes,function(n,e){var t=0;1===n.nodeType&&r(n,t++,e)})}x.prototype.add=function(){E(this.elem,arguments,function(n,e){return-1===n.indexOf(e)&&n.append(e),n})},x.prototype.remove=function(){E(this.elem,arguments,function(n,e){var t=n.indexOf(e);return-1<t&&n.splice(t,1),n})},x.prototype.contains=function(n){return-1<w(this.elem.className).indexOf(n)},m("classList",{get:function(){return new x(this)}});var L={for:"htmlFor",class:"className"};["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"].forEach(function(n){L[n.toLowerCase()]=n});var D=document.createElement("div"),T=["Webkit","Moz","ms"],O=D.style;var j=document.body,F={append:function(n,e){n.appendChild(e)},prepend:function(n,e){n.insertBefore(e,n.firstChild)},after:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n.nextSibling)},before:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n)},createContextualFragment:window.Range&&"createContextualFragment"in window.Range.prototype};function B(n,e,t){var r=n.match(y);if(r){var o=document.createElement(r[1]);c(e,function(n,e){o.setAttribute(e,n)}),t(o)}else if(h.test(n)){var u=D.cloneNode();if(F.createContextualFragment){var i=document.createRange();u.appendChild(i.createContextualFragment(n))}else u.innerHTML=n;S(u,t)}else t(document.createTextNode(n))}function M(n){return"function"==typeof n}["prepend","after","before"].forEach(function(t){t in j&&(F[t]=function(n,e){return n[t](e)})});var V=Array.isArray;function k(n,e){var t=document.createDocumentFragment(),r=function(n){1===n.nodeType?t.appendChild(n):!b(n)&&function(n){return!o(n)&&function(n){return"number"==typeof n}(n.length)&&!M(n)}(n)?C(n,function(n){t.appendChild(n)}):B(n,e,function(n){t.appendChild(n)})};return V(n)?C(n,r):r(n),t}function H(n,e,t){if(n){var r=k(e);t=F[t],A(n,function(n){return t(n,r.cloneNode(!0))},function(n){return t(n,r)})}return n}function R(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"append")}var z=/-([a-z])/g;var U={};function $(n,e,t){var r=n.style;if(e=U[e]||(U[e]=function(n){if(n in O)return n;for(var e=n[0].toUpperCase()+n.slice(1),t=T.length;t--;)if((n=T[t]+e)in O)return n}(e)||e),o(t))return r[e];r[e]=t}function q(n,e,t){var r="";return(t=t||function(n){var e=n.ownerDocument.defaultView;return e&&e.opener||(e=window),e.getComputedStyle(n)}(n))&&(r=t.getPropertyValue(e)||t[e]),r}var I=1,W="expando9527",G={};function J(n,e,t){var r=n[W],o=G[r||-1];if(l(t))return o&&o[e];o||(n[W]=r=++I,o=G[r]={}),o[e]=t}function K(n){N(n,function(n){if(1===n.nodeType)if("textContent"in n)n.textContent="";else for(var e;e=n.firstChild;)n.removeChild(e)})}function Q(n,r){return N(n,function(n){var e=n.style.display||"",t=J(n,"display");(l(t)&&(J(n,"display",e),t=e),r)?e?"none"===e&&(n.style.display="none"===t?"":t):"none"===q(n,"display")&&(n.style.display="block"):n.style.display="none"}),n}function X(n,t,r,e){var o=[];return M(r)||(r=function(n){return n&&o.append(n)}),N(n,e?function(n){for(var e;!1!==e&&(n=n[t]);)e=r(n);return e}:function(n){return r(n[t])}),o}function Y(n,e,t){return n&&C(n,e,t)}m("previousElementSibling",{get:function(){return function(n,e){for(;(n=n[e])&&1!==n.nodeType;);return n}(this,"previousSibling")}});var Z=Array.isArray;var _=window.removeEventListener?function(n,e,t){n.removeEventListener(e,t,!1)}:function(n,e,t){n.detachEvent("on"+e,t)};var nn=window.addEventListener?function(n,e,t){n.addEventListener(e,t,!1)}:function(n,e,t){n.attachEvent("on"+e,t)};function en(n,e,t){return l(t)?function(n,e){return(n=P(n))&&n[e]}(n,e):function(n,e,t){return e=L[e]||e,N(n,function(n){n[e]=t}),n}(n,e,t)}function tn(n){for(var e,t=n.childNodes,r=0;(e=t[r++])&&1!==e.nodeType;);return e}return{addClass:function(n,e){var t=w(e);return N(n,function(n){var e;(e=n.classList).add.apply(e,t)}),n},after:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"after")},append:R,attr:function(n,e,t){return l(t)?function(n,e){return(n=P(n))&&n.getAttribute(e)}(n,e):function(n,e,t){return N(n,function(n){n.setAttribute(e,t)}),n}(n,e,t)},before:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"before")},children:function(n,e){var t=[];return M(e)||(e=function(n){return t.append(n)}),N(n,function(n){S(n,e)}),t},createElement:function(n,e,t){if(M(e)&&(t=e,e=null),M(t))return B(n,e,t);var r=[];return B(n,e,function(n){p(r,n)}),r},css:function(n,e,t){return e=function(n){return n.replace(z,function(n,e){return e.toUpperCase()})}(e),l(t)?function(n,e){return(n=P(n))?q(n,e):""}(n,e):function(n,e,t){return N(n,function(n){$(n,e,t)}),n}(n,e,t)},data:function(e,r,t){if(a(r))return N(e,function(n){var t=J(n,"data");t||J(e,"data",t={}),i(r,function(n,e){t[e]=n})}),e;if(o(r))return(e=P(e))&&J(e,"data");if(l(t)){var n=J(e,"data");return n&&n[r]}return N(e,function(n){var e=J(n,"data");e||J(n,"data",e={}),e[r]=t}),e},empty:K,find:function(n,e,t){var r=[];return M(t)||(t=function(n){return r.append(n)}),N(n,function(n){return C(n.querySelectorAll(e),t)}),r},hasClass:function(n,e){var t=!1,r=w(e);return N(n,function(e){return C(r,function(n){return!(t=e.classList.contains(n))}),!t}),t},hide:function(n){return Q(n)},html:function(n,e){return o(e)?(n=P(n))&&n.innerHTML:(N(n,1===e.nodeType?function(n){K(n),R(n,e)}:function(n){n.innerHTML=String(e)}),n)},next:function(n,e){return X(n,"nextElementSibling",e)},nextAll:function(n,e){return X(n,"nextElementSibling",e,!0)},off:function(n,e,o){return N(n,function(t){var r=J(t,"events");J(t,"handle")&&(l(e)?Y(r,function(n,e){_(t,e,n),delete r[e]}):Y(e.split(" "),function(n){l(o)?(_(t,n,r[n]),delete r[n]):function(n,e){n&&Z(n)&&function(n,e){var t=n.indexOf(e);-1<t&&function(n,e){n.splice(e,1)[0]}(n,t)}(n,e)}(r[n],o)}))}),n},on:function(n,e,u){return N(n,function(t){var r=J(t,"events"),o=J(t,"handle");r||J(t,"events",r={}),o||J(t,"handle",o=function(t,r){var n=function(e){if(e.preventDefault||(e.preventDefault=function(){e.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){e.cancelBubble=!0}),e.target||(e.target=e.srcElement||document),l(e.defaultPrevented)){var n=e.preventDefault;n=n.bind(e),e.preventDefault=function(){e.defaultPrevented=!0,n()},e.defaultPrevented=!1}e.isDefaultPrevented=function(){return e.defaultPrevented||!1===e.returnValue},Y(r[e.type],function(n){return n.call(t,e)});try{delete e.preventDefault,delete e.stopPropagation,delete e.isDefaultPrevented}catch(n){e.preventDefault=null,e.stopPropagation=null,e.isDefaultPrevented=null}};return n.elem=t,n}(t,r)),e.split(" ").forEach(function(n){var e=r[n];e||(nn(t,n,o),e=r[n]=[]),e[e.length]=u})}),n},parent:function(n,e){return X(n,"parentNode",e)},prepend:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"prepend")},prev:function(n,e){return X(n,"previousElementSibling",e)},prevAll:function(n,e){return X(n,"previousElementSibling",e,!0)},prop:en,remove:function(n){return N(n,function(n){var e=n.parentNode;e&&e.removeChild(n)}),n},removeAttr:function(n,e){var t=w(e);return N(n,function(e){t.forEach(function(n){e.removeAttribute(n)})}),n},removeClass:function(n,e){if(1===arguments.length)return en(n,"className","");var t=w(e);return N(n,function(n){var e;(e=n.classList).remove.apply(e,t)}),n},removeData:function(n){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];var r=t[0]?function(n){var e=J(n,"data");e&&C(t,function(n){delete e[n]})}:function(){J(n,"data",{})};return N(n,r),n},removeProp:function(n,e){return N(n,function(n){delete n[L[e]||e]}),n},show:function(n){return Q(n,!0)},wrap:function(n,e){if(e){e=k(e);var r=F.before,t=function(n,e){var t;for(r(n,e),e=n.previousElementSibling;t=tn(e);)e=t;e.appendChild(n)};A(n,function(n){return t(n,e.cloneNode(!0))},function(n){return t(n,e)})}return n}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e();
var n,e;n=this,e=function(){"use strict";function o(n){return null==n}function f(n,e){return e?n.bind(e):n}function u(n,e,t,r,o){for(var u=f(r,o),i=e,a=void 0;!1!==a&&i<t;i++)a=u(n[i],i,n)}function i(n,e,t){var r=f(e,t);for(var o in n)if(n.hasOwnProperty(o)&&!1===r(n[o],o,n))break}function a(n){return!o(n)&&"object"==typeof n}function c(n,e,t){return a(n)&&i(n,e,t)}var t=Object.assign||function(n){if(o(n))throw new TypeError("Cannot convert undefined or null to object");var t=Object(n);return u(arguments,1,arguments.length,function(n){c(n,function(n,e){t[e]=n})}),t};function l(n){return void 0===n}function r(n,e){return e in n&&(e="c$"+e),e}var n,e,d=Array.prototype;function p(n,e){return n[n.length]=e,n}e=function(n){return p(this,n)},n=r(d,n="append"),d[n]=e;var s,v=window.Element.prototype,m=(s=v,function(n,e){n=r(s,n),!l(e.value)&&l(e.writable)&&(e.writable=!0),Object.defineProperty(s,n,t({enumerable:!1,configurable:!0},e))}),h=/^\s*<(\w+|!)[^>]*>/,y=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,g=/[^\x20\t\r\n\f]+/g;function b(n){return"string"==typeof n}function w(n){return Array.isArray(n)?n:b(n)&&n.match(g)||[]}function C(n,e,t){u(n,0,n.length,e,t)}function E(n,e,t){var r=w(n.className),o=r.concat();C(e,function(n){o=t(o,n)}),(r=r.join(" "))!==(o=o.join(" "))&&(n.className=o)}var x=function(n){this.elem=n};function P(n){return n&&(-1<n.length?n[0]:n)}function A(n,e,t){var r,o=n.length;return t(o?(u(n,0,r=o-1,e),n[r]):n),n}function N(n,e){return n&&(n.length&&!function(n){return n&&n===n.window}(n)?C(n,e):e(n)),n}function S(n,r){C(n.childNodes,function(n,e){var t=0;1===n.nodeType&&r(n,t++,e)})}x.prototype.add=function(){E(this.elem,arguments,function(n,e){return-1===n.indexOf(e)&&n.append(e),n})},x.prototype.remove=function(){E(this.elem,arguments,function(n,e){var t=n.indexOf(e);return-1<t&&n.splice(t,1),n})},x.prototype.contains=function(n){return-1<w(this.elem.className).indexOf(n)},m("classList",{get:function(){return new x(this)}});var L={for:"htmlFor",class:"className"};["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"].forEach(function(n){L[n.toLowerCase()]=n});var D=document.createElement("div"),T=["Webkit","Moz","ms"],O=D.style;var j=document.body,F={append:function(n,e){n.appendChild(e)},prepend:function(n,e){n.insertBefore(e,n.firstChild)},after:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n.nextSibling)},before:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n)},createContextualFragment:window.Range&&"createContextualFragment"in window.Range.prototype};function B(n,e,t){var r=n.match(y);if(r){var o=document.createElement(r[1]);c(e,function(n,e){o.setAttribute(e,n)}),t(o)}else if(h.test(n)){var u=D.cloneNode();if(F.createContextualFragment){var i=document.createRange();u.appendChild(i.createContextualFragment(n))}else u.innerHTML=n;S(u,t)}else t(document.createTextNode(n))}function M(n){return"function"==typeof n}["prepend","after","before"].forEach(function(t){t in j&&(F[t]=function(n,e){return n[t](e)})});var V=Array.isArray;function k(n,e){var t=document.createDocumentFragment(),r=function(n){1===n.nodeType?t.appendChild(n):!b(n)&&function(n){return!o(n)&&function(n){return"number"==typeof n}(n.length)&&!M(n)}(n)?C(n,function(n){t.appendChild(n)}):B(n,e,function(n){t.appendChild(n)})};return V(n)?C(n,r):r(n),t}function H(n,e,t){if(n){var r=k(e);t=F[t],A(n,function(n){return t(n,r.cloneNode(!0))},function(n){return t(n,r)})}return n}function R(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"append")}var z=/-([a-z])/g;var U={};function $(n,e,t){e=function(n){return n.replace(z,function(n,e){return e.toUpperCase()})}(e);var r=n.style;if(e=U[e]||(U[e]=function(n){if(n in O)return n;for(var e=n[0].toUpperCase()+n.slice(1),t=T.length;t--;)if((n=T[t]+e)in O)return n}(e)||e),o(t))return r[e];r[e]=t}function q(n,e,t){var r="";return(t=t||function(n){var e=n.ownerDocument.defaultView;return e&&e.opener||(e=window),e.getComputedStyle(n)}(n))&&(r=t.getPropertyValue(e)||t[e]),r}function I(n,e,t){return N(n,function(n){$(n,e,t)}),n}var W=1,G="expando9527",J={};function K(n,e,t){var r=n[G],o=J[r||-1];if(l(t))return o&&o[e];o||(n[G]=r=++W,o=J[r]={}),o[e]=t}function Q(n){N(n,function(n){if(1===n.nodeType)if("textContent"in n)n.textContent="";else for(var e;e=n.firstChild;)n.removeChild(e)})}function X(n,r){return N(n,function(n){var e=n.style.display||"",t=K(n,"display");(l(t)&&(K(n,"display",e),t=e),r)?e?"none"===e&&(n.style.display="none"===t?"":t):"none"===q(n,"display")&&(n.style.display="block"):n.style.display="none"}),n}function Y(n,t,r,e){var o=[];return M(r)||(r=function(n){return n&&o.append(n)}),N(n,e?function(n){for(var e;!1!==e&&(n=n[t]);)e=r(n);return e}:function(n){return r(n[t])}),o}function Z(n,e,t){return n&&C(n,e,t)}m("previousElementSibling",{get:function(){return function(n,e){for(;(n=n[e])&&1!==n.nodeType;);return n}(this,"previousSibling")}});var _=Array.isArray;var nn=window.removeEventListener?function(n,e,t){n.removeEventListener(e,t,!1)}:function(n,e,t){n.detachEvent("on"+e,t)};var en=window.addEventListener?function(n,e,t){n.addEventListener(e,t,!1)}:function(n,e,t){n.attachEvent("on"+e,t)};function tn(n,e,t){return l(t)?function(n,e){return(n=P(n))&&n[e]}(n,e):function(n,e,t){return e=L[e]||e,N(n,function(n){n[e]=t}),n}(n,e,t)}function rn(n){for(var e,t=n.childNodes,r=0;(e=t[r++])&&1!==e.nodeType;);return e}return{addClass:function(n,e){var t=w(e);return N(n,function(n){var e;(e=n.classList).add.apply(e,t)}),n},after:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"after")},append:R,attr:function(n,e,t){return l(t)?function(n,e){return(n=P(n))&&n.getAttribute(e)}(n,e):function(n,e,t){return N(n,function(n){n.setAttribute(e,t)}),n}(n,e,t)},before:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"before")},children:function(n,e){var t=[];return M(e)||(e=function(n){return t.append(n)}),N(n,function(n){S(n,e)}),t},createElement:function(n,e,t){if(M(e)&&(t=e,e=null),M(t))return B(n,e,t);var r=[];return B(n,e,function(n){p(r,n)}),r},css:function(n,e,t){return l(t)?a(e)?function(t,n){return i(n,function(n,e){I(t,e,n)}),t}(n,e):function(n,e){return(n=P(n))?q(n,e):""}(n,e):I(n,e,t)},data:function(e,r,t){if(a(r))return N(e,function(n){var t=K(n,"data");t||K(e,"data",t={}),i(r,function(n,e){t[e]=n})}),e;if(o(r))return(e=P(e))&&K(e,"data");if(l(t)){var n=K(e,"data");return n&&n[r]}return N(e,function(n){var e=K(n,"data");e||K(n,"data",e={}),e[r]=t}),e},empty:Q,find:function(n,e,t){var r=[];return M(t)||(t=function(n){return r.append(n)}),N(n,function(n){return C(n.querySelectorAll(e),t)}),r},hasClass:function(n,e){var t=!1,r=w(e);return N(n,function(e){return C(r,function(n){return!(t=e.classList.contains(n))}),!t}),t},hide:function(n){return X(n)},html:function(n,e){return o(e)?(n=P(n))&&n.innerHTML:(N(n,1===e.nodeType?function(n){Q(n),R(n,e)}:function(n){n.innerHTML=String(e)}),n)},next:function(n,e){return Y(n,"nextElementSibling",e)},nextAll:function(n,e){return Y(n,"nextElementSibling",e,!0)},off:function(n,e,o){return N(n,function(t){var r=K(t,"events");K(t,"handle")&&(l(e)?Z(r,function(n,e){nn(t,e,n),delete r[e]}):Z(e.split(" "),function(n){l(o)?(nn(t,n,r[n]),delete r[n]):function(n,e){n&&_(n)&&function(n,e){var t=n.indexOf(e);-1<t&&function(n,e){n.splice(e,1)[0]}(n,t)}(n,e)}(r[n],o)}))}),n},on:function(n,e,u){return N(n,function(t){var r=K(t,"events"),o=K(t,"handle");r||K(t,"events",r={}),o||K(t,"handle",o=function(t,r){var n=function(e){if(e.preventDefault||(e.preventDefault=function(){e.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){e.cancelBubble=!0}),e.target||(e.target=e.srcElement||document),l(e.defaultPrevented)){var n=e.preventDefault;n=n.bind(e),e.preventDefault=function(){e.defaultPrevented=!0,n()},e.defaultPrevented=!1}e.isDefaultPrevented=function(){return e.defaultPrevented||!1===e.returnValue},Z(r[e.type],function(n){return n.call(t,e)});try{delete e.preventDefault,delete e.stopPropagation,delete e.isDefaultPrevented}catch(n){e.preventDefault=null,e.stopPropagation=null,e.isDefaultPrevented=null}};return n.elem=t,n}(t,r)),e.split(" ").forEach(function(n){var e=r[n];e||(en(t,n,o),e=r[n]=[]),e[e.length]=u})}),n},parent:function(n,e){return Y(n,"parentNode",e)},prepend:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return H(n,e,"prepend")},prev:function(n,e){return Y(n,"previousElementSibling",e)},prevAll:function(n,e){return Y(n,"previousElementSibling",e,!0)},prop:tn,remove:function(n){return N(n,function(n){var e=n.parentNode;e&&e.removeChild(n)}),n},removeAttr:function(n,e){var t=w(e);return N(n,function(e){t.forEach(function(n){e.removeAttribute(n)})}),n},removeClass:function(n,e){if(1===arguments.length)return tn(n,"className","");var t=w(e);return N(n,function(n){var e;(e=n.classList).remove.apply(e,t)}),n},removeData:function(n){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];var r=t[0]?function(n){var e=K(n,"data");e&&C(t,function(n){delete e[n]})}:function(){K(n,"data",{})};return N(n,r),n},removeProp:function(n,e){return N(n,function(n){delete n[L[e]||e]}),n},show:function(n){return X(n,!0)},wrap:function(n,e){if(e){e=k(e);var r=F.before,t=function(n,e){var t;for(r(n,e),e=n.previousElementSibling;t=rn(e);)e=t;e.appendChild(n)};A(n,function(n){return t(n,e.cloneNode(!0))},function(n){return t(n,e)})}return n}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e();
/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.4
* celia.js v4.0.5
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

@@ -6,2 +6,4 @@ import isUndefined from '../isUndefined';

import curCSS from '../_internal/_dom/_curCSS';
import isObject from '../isObject';
import forOwn from '../_internal/_object/_forOwn';

@@ -20,2 +22,9 @@ function getter(dom, k) {

function objSetter(dom, obj) {
forOwn(obj, (val, key) => {
setter(dom, key, val);
});
return dom;
}
/**

@@ -28,6 +37,7 @@ * 读取或者设置属性

export default function (dom, key, val) {
key = camelCase(key);
return isUndefined(val) ?
getter(dom, key) :
isObject(key) ?
objSetter(dom, key) :
getter(dom, key) :
setter(dom, key, val);
}
{
"name": "celia",
"version": "4.0.4",
"version": "4.0.5",
"description": "A modern JavaScript utility library delivering modularity, performance, & extras.",

@@ -5,0 +5,0 @@ "main": "./dist/celia.c.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc