UNPKG

elly

Version:

A tiny library for creating and selecting DOM elements.

42 lines (40 loc) 2.57 kB
"use strict"; var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _typeof = "function" == typeof Symbol && "symbol" == _typeof2(Symbol.iterator) ? function (e) { return typeof e === "undefined" ? "undefined" : _typeof2(e); } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e === "undefined" ? "undefined" : _typeof2(e); };!function (e) { if ("object" === ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module) module.exports = e();else if ("function" == typeof define && define.amd) define([], e);else { var t;t = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, t.$ = e(); } }(function () { return function e(t, n, o) { function r(i, u) { if (!n[i]) { if (!t[i]) { var c = "function" == typeof require && require;if (!u && c) return c(i, !0);if (f) return f(i, !0);var d = new Error("Cannot find module '" + i + "'");throw d.code = "MODULE_NOT_FOUND", d; }var l = n[i] = { exports: {} };t[i][0].call(l.exports, function (e) { var n = t[i][1][e];return r(n ? n : e); }, l, l.exports, e, t, n, o); }return n[i].exports; }for (var f = "function" == typeof require && require, i = 0; i < o.length; i++) { r(o[i]); }return r; }({ 1: [function (e, t) { function n(e, t) { return "string" == typeof e ? "<" === e.charAt(0) ? (e = document.createElement(e.slice(1, -1)), o(t || {}, function (t, n) { switch (n) {case "text": return void (e.textContent = t);case "html": return void (e.innerHTML = t);}e.setAttribute(n, t); }), e) : (t = t || document, t.querySelector(e)) : e; }var o = e("iterate-object");n.$$ = function (e, t) { return t = t || document, t.querySelectorAll(e); }, t.exports = n; }, { "iterate-object": 2 }], 2: [function (e, t) { function n(e, t) { var n = 0, o = [];if (Array.isArray(e)) for (; n < e.length && t(e[n], n, e) !== !1; ++n) {} else if ("object" === ("undefined" == typeof e ? "undefined" : _typeof(e)) && null !== e) for (o = Object.keys(e); n < o.length && t(e[o[n]], o[n], e) !== !1; ++n) {} }t.exports = n; }, {}] }, {}, [1])(1); });