// scant.js v0.3.0
// https://github.com/simpleoncall/scant
// (c) 2015 Brett Langdon <brett@blangdon.com> (http://brett.is)
// Licensed under MIT, do what you want
var Scant=function(){var e=function(e,n){n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},n=function(e,n){var t=Object.create(e);for(var a in n)t[a]=n[a];return t},t=function(e,n){this.selector=n||"",this.length=e?e.length:0;for(var t=0;t<this.length;++t)this[t]=e[t]};e(Array,t),t.prototype.forEach||(t.prototype.forEach=function(e){for(var n=0;n<this.length;++n)e(this[n])}),t.prototype.find=function(e){var n=[];return this.forEach(function(t){var a=this.slice.call(t.querySelectorAll(e));n=n.concat(a)}.bind(this)),new t(n)},t.prototype.serialize=function(e){var t={};return void 0===e?this.forEach(function(e){t=n(t,this.serialize(e))}.bind(this)):"FORM"===e.nodeName?this.forEach.call(e.elements,function(e){if("INPUT"===e.nodeName)switch(e.type){case"text":case"hidden":case"button":case"reset":case"submit":case"password":t[e.name]=e.value;break;case"checkbox":case"radio":e.checked&&(Array.isArray(t[e.name])?t[e.name].push(e.value):t[e.name]=e.name in t?[t[e.name],e.value]:e.value)}else if("TEXTAREA"===e.nodeName)t[e.name]=e.value;else if("BUTTON"===e.nodeName)t[e.name]=e.value;else if("SELECT"===e.nodeName)switch(e.type){case"select-one":t[e.name]=e.value;break;case"select-multiple":for(var n=0;n<e.options.length;++n)e.options[n].selected&&(Array.isArray(t[e.name])?t[e.name].push(e.options[n].value):t[e.name]=e.name in t?[t[e.name],e.options[n].value]:e.options[n].value)}}.bind(this)):t=n(t,e.dataset),t};var a=function(e){if("string"==typeof e){var n=document.querySelectorAll(e);return new t(n,e)}return new t(e)};a.extend=n,a.inherits=e;var o={url:null,method:"GET",headers:{},data:null,dataType:"application/x-www-form-urlencoded; charset=UTF-8",beforeSend:null,responseType:""};return a.ajax=function(e,t){e=n(o,e),t="function"==typeof t?t:function(){};var a=new XMLHttpRequest;a.responseType=e.responseType,a.open(e.method,e.url,!0);for(var r in e.headers)a.setRequestHeader(r,e.headers[r]);return a.onload=function(){a.status>=200&&a.status<400?t(null,a):t(!0,a)},a.onerror=function(){t(!0,a)},"function"==typeof e.beforeSend&&e.beforeSend(a),e.data&&a.setRequestHeader("Content-Type",e.dataType),a.send(e.data),a},a.on=function(e,n,t){"function"==typeof n&&(t=n,n=null);var a=document.querySelector("body");a.addEventListener(e,function(e){return null===n||e.target.matches(n)?t(e):void 0})},a.ready=function(e){a.on("DOMContentLoaded",e)},a}();window.Scant=Scant,void 0===window.$&&(window.$=window.Scant);
//# sourceMappingURL=./scant.min.js.map
@@ -10,17 +10,17 @@
 js v0.3.
-0
+2
 %0A// http
@@ -395,16 +395,71 @@
 on(e,n)%7B
+(e instanceof Node%7C%7Ce instanceof HTMLElement)&&(e=%5Be%5D),
 this.sel
@@ -2610,20 +2610,41 @@
 tion(e)%7B
-a.on
+document.addEventListener
 (%22DOMCon

update scant