assets/javascripts/nanodom.min.js
1 |
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.nanodom=e()}}(function(){return function e(n,t,r){function o(f,u){if(!t[f]){if(!n[f]){var c="function"==typeof require&&require;if(!u&&c)return c(f,!0);if(i)return i(f,!0);throw new Error("Cannot find module '"+f+"'")}var d=t[f]={exports:{}};n[f][0].call(d.exports,function(e){var t=n[f][1][e];return o(t?t:e)},d,d.exports,e,n,t,r)}return t[f].exports}for(var i="function"==typeof require&&require,f=0;f<r.length;f++)o(r[f]);return o}({1:[function(e,n){function t(){}function r(e){var n=document.createElement("div");return n.innerHTML=e,n.childNodes}t.prototype=new Array,t.prototype.append=function(e){return e.forEach(function(e){this[0].appendChild(e)}.bind(this)),this},t.prototype.remove=function(){return this.forEach(function(e){e.parentNode.removeChild(e)}),this},t.prototype.prepend=function(e){return e.forEach(function(e){this[0].insertBefore(e,this[0].hasChildNodes()?this[0].childNodes[0]:null)}.bind(this)),this},t.prototype.each=function(e){return this.forEach(e),this},n.exports=function(e){if(e instanceof t)return e;if(e instanceof HTMLElement){var n=new t;return n.push(e),n}if("string"==typeof e){var o,n=new t,i=0==e.indexOf("<");return o=i?r(e):document.querySelectorAll(e),[].slice.call(o).forEach(function(e){n.push(e)}),n}}},{}]},{},[1])(1)}); |