diff --git a/dist/ffnm.min.js b/dist/ffnm.min.js index 6b84bcb..158f5ac 100644 --- a/dist/ffnm.min.js +++ b/dist/ffnm.min.js @@ -1,2 +1,2 @@ -"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,n){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).R={})}(void 0,function(t){function a(t){return null!=t&&"object"==_typeof(t)&&!0===t["@@functional/placeholder"]}function o(r){return function t(n){return 0===arguments.length||a(n)?t:r.apply(this,arguments)}}function n(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return a(n)?t:o(function(t){return e(n,t)});default:return a(n)&&a(r)?t:a(n)?o(function(t){return e(t,r)}):a(r)?o(function(t){return e(n,t)}):e(n,r)}}}var r=n(function(t,n){return+t+ +n});function i(t,n){for(var r=(t=t||[]).length,e=(n=n||[]).length,u=[],i=0;i":sn(t,n)}function t(n,t){return x(function(t){return tn(t)+": "+u(n[t])},t.slice().sort())}switch(Object.prototype.toString.call(r)){case"[object Arguments]":return"(function() { return arguments; }("+x(u,r).join(", ")+"))";case"[object Array]":return"["+x(u,r).concat(t(r,fn(function(t){return/^\d+$/.test(t)},U(r)))).join(", ")+"]";case"[object Boolean]":return"object"==_typeof(r)?"new Boolean("+u(r.valueOf())+")":""+r;case"[object Date]":return"new Date("+(isNaN(r.valueOf())?u(NaN):tn(rn(r)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==_typeof(r)?"new Number("+u(r.valueOf())+")":1/r==-1/0?"-0":r.toString(10);case"[object String]":return"object"==_typeof(r)?"new String("+u(r.valueOf())+")":tn(r);case"[object Undefined]":return"undefined";default:if("function"==typeof r.toString){var n=""+r;if("[object Object]"!=n)return n}return"{"+t(r,U(r)).join(", ")+"}"}}var ln=o(function(t){return sn(t,[])}),pn=n(function(t,n){if(p(t)){if(p(n))return t.concat(n);throw new TypeError(ln(n)+" is not an array")}if(w(t)){if(w(n))return t+n;throw new TypeError(ln(n)+" is not a string")}if(null!=t&&yt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&yt(t.concat))return t.concat(n);throw new TypeError(ln(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),hn=o(function(n){return f($(b,0,B(function(t){return t[0].length},n)),function(){for(var t=0;tt(n)?r:n}),le=$(r,0),pe=o(function(t){return le(t)/t.length}),he=o(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return pe(Array.prototype.slice.call(t,0).sort(function(t,n){return tt.length)&&(n=t.length);for(var r=0,e=new Array(n);r":sn(t,n)}function t(n,t){return x(function(t){return tn(t)+": "+u(n[t])},t.slice().sort())}switch(Object.prototype.toString.call(r)){case"[object Arguments]":return"(function() { return arguments; }("+x(u,r).join(", ")+"))";case"[object Array]":return"["+x(u,r).concat(t(r,fn(function(t){return/^\d+$/.test(t)},U(r)))).join(", ")+"]";case"[object Boolean]":return"object"==_typeof(r)?"new Boolean("+u(r.valueOf())+")":""+r;case"[object Date]":return"new Date("+(isNaN(r.valueOf())?u(NaN):tn(rn(r)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==_typeof(r)?"new Number("+u(r.valueOf())+")":1/r==-1/0?"-0":r.toString(10);case"[object String]":return"object"==_typeof(r)?"new String("+u(r.valueOf())+")":tn(r);case"[object Undefined]":return"undefined";default:if("function"==typeof r.toString){var n=""+r;if("[object Object]"!=n)return n}return"{"+t(r,U(r)).join(", ")+"}"}}var ln=o(function(t){return sn(t,[])}),pn=n(function(t,n){if(p(t)){if(p(n))return t.concat(n);throw new TypeError(ln(n)+" is not an array")}if(w(t)){if(w(n))return t+n;throw new TypeError(ln(n)+" is not a string")}if(null!=t&&yt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&yt(t.concat))return t.concat(n);throw new TypeError(ln(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),hn=o(function(n){return f($(b,0,B(function(t){return t[0].length},n)),function(){for(var t=0;tt(n)?r:n}),le=$(r,0),pe=o(function(t){return le(t)/t.length}),he=o(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return pe(Array.prototype.slice.call(t,0).sort(function(t,n){return t { // Check element FUNCTION_TREE - return R.map((element) => { + return [...document.querySelectorAll(`[${event}]`)].map((element) => { // Check KEY FUNCTION_TREE - return R.map((key) => { + return Object.keys(FUNCTION_TREE).map((key) => { // Check METHODS FUNCTION_TREE - return R.map((method) => { + return FUNCTION_TREE[key].map((method) => { return RegExp(`^${key}:${method}\\('\\w+', *'[#,.,a-zA-Z]\\w*'\\)$`).test(element.getAttribute(event)); - }, FUNCTION_TREE[key]).some(method => method); - }, Object.keys(FUNCTION_TREE)).every(key => key); - }, document.querySelectorAll(`[${event}]`)).every(item => item); + }).some(method => method); + }).every(key => key); + }).every(item => item); }).every(event => event); }