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

eventi

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventi - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

4

bower.json
{
"name": "eventi",
"version": "1.3.5",
"version": "1.3.6",
"homepage": "https://github.com/esha/Eventi",

@@ -13,3 +13,3 @@ "bugs": "https://github.com/esha/Eventi/issues",

},
"main": "dist/eventi.min.js",
"main": "dist/eventi.js",
"keywords": [

@@ -16,0 +16,0 @@ "event",

{
"name": "eventi",
"repo": "esha/Eventi",
"version": "1.3.5",
"version": "1.3.6",
"keywords": [

@@ -6,0 +6,0 @@ "event",

@@ -1,4 +0,4 @@

/*! Eventi - v1.3.5 - 2014-10-15
/*! Eventi - v1.3.6 - 2014-10-21
* https://github.com/esha/Eventi
* Copyright (c) 2014 ESHA Research; Licensed MIT */
!function(){var a=Eventi._,b=console.log.bind(console);a.debug=function(c,d,e,f){var g=c[a._key],h=[];if(g)for(var i=0,j=d.length;j>i;i++){var k={};if(d[i])a.parse(k.text=d[i],k.event={},k.handler={}),"function"!=typeof e&&(f=e,e=void 0),k.data=f,k.handlers=a.debug.handlers(k.event.type,k,g);else{k=[];var l={event:{},handler:{}};for(var m in g.s)k.push.apply(k,a.debug.handlers(m,l,g))}h.push(k)}return e||(e=b),h.forEach(function(b){b.text?e(a.debug.target(c),b.text,b.event,b.handler,b.handlers):b.forEach(function(b){e(a.debug.target(b.target),b.text,b)})}),h.length>1?h:h[0]},a.debug.target=function(a){return a===window?"":a},a.debug.handlers=function(b,c,d){var e=d.s[b],f=[];if(e)for(var g=0,h=e.length;h>g;g++)a.debug.match(e[g],c)&&f.push(e[g]);return f},a.debug.match=function(b,c){return a.matches(b.event,c.event)&&a.matches(b,c.handler)&&(!b.important||c.handler.important&&a.matches(c.event,b.event))&&(!c.fn||c.fn===b.fn)},a.fn("debug",3),b("Eventi, version "+a.version),Eventi.debug()}();

@@ -1,4 +0,4 @@

/*! Eventi - v1.3.5 - 2014-10-15
/*! Eventi - v1.3.6 - 2014-10-21
* https://github.com/esha/Eventi
* Copyright (c) 2014 ESHA Research; Licensed MIT */
!function(a,b,c){a.fn.trigger=function(a,d){var e=a.split("."),f=e.shift();d&&(d=Array.isArray(d)?d:[d]),this.each(function(g,h){if(jQuery.isWindow(h)||"function"!=typeof h[f]){var i=new c(f);d&&(i.data=d),e.length&&(i.namespace=e.join(".")),b.dispatch(h,i)}jQuery.event.trigger(a,d,this)})}}(jQuery,window.Eventi._,CustomEvent);

@@ -1,2 +0,2 @@

/*! Eventi - v1.3.5 - 2014-10-15
/*! Eventi - v1.3.6 - 2014-10-21
* https://github.com/esha/Eventi

@@ -35,3 +35,3 @@ * Copyright (c) 2014 ESHA Research; Licensed MIT */

var _ = Eventi._ = {
version: "1.3.5",
version: "1.3.6",
global: new Function('return this')(),

@@ -516,4 +516,4 @@ noop: function(){},

var current;
_.location = function(e, uri) {
uri = uri || decodeURI(location.pathname + location.search + location.hash);
_.location = function(e) {
var uri = _.getLocation();
if (uri !== current) {

@@ -526,24 +526,25 @@ _.dispatch(_.global, new Eventi('location', {

}
return current;
};
_.getLocation = function() {
return decodeURI(location.pathname + location.search + location.hash);
};
_.setLocation = function(e, uri, fill) {
if (typeof uri !== "string") {
fill = uri;
uri = e.location;
}
if (uri) {
var keys = _.keys(uri);
if (keys) {
uri = keys.reduce(function(s, key) {
return s.replace(new RegExp('\\{'+key+'\\}',"g"),
fill[key] || location[key] || '');
}, uri);
// user-fired set events should not have oldLocation prop
if (!e.oldLocation) {
if (typeof uri !== "string") {
fill = uri;
uri = e.location;
}
if (uri !== current) {
if (e.location !== uri) {
history.pushState(null, null, encodeURI(uri));
} else {
_.pushState.call(history, null, null, encodeURI(uri));
current = uri;
if (uri) {
var keys = _.keys(uri);
if (keys) {
uri = keys.reduce(function(s, key) {
return s.replace(new RegExp('\\{'+key+'\\}',"g"),
fill[key] || location[key] || '');
}, uri);
}
// don't share this event with other handlers
e.stopPropagation();
e.stopImmediatePropagation();
history.pushState(null, null, encodeURI(uri));
}

@@ -588,16 +589,19 @@ }

};
Eventi.on('!popstate !hashchange !pushstate', _.location)
var historyTypes = ['popstate','hashchange','pushstate'];
Eventi.on('!'+(historyTypes.join(' !')), _.location)
.on('!location', _.setLocation)
.on(_, 'on:handler', function location(e, handler) {
if (handler.location && !handler.event.type) {
handler.event.type = 'location';
var type = handler.event.type;
if (handler.location && !type) {
type = handler.event.type = 'location';
}
if (handler.event.type === 'location') {
// force global
if (type === 'location') {
handler.global = true;
// try for current uri match immediately
// try immediately for current uri match
if (!current) {
_.location();
current = _.getLocation();
}
_.execute(new Eventi('location',{location:current, srcEvent:e}), handler);
} else if (historyTypes.indexOf(type) >= 0) {
handler.global = true;
}

@@ -604,0 +608,0 @@ });

@@ -1,4 +0,4 @@

/*! Eventi - v1.3.5 - 2014-10-15
/*! Eventi - v1.3.6 - 2014-10-21
* https://github.com/esha/Eventi
* Copyright (c) 2014 ESHA Research; Licensed MIT */
!function(global,document){"use strict";function Eventi(a){return"string"==typeof a?_.create.apply(_,arguments):Eventi.fy(this)}try{new CustomEvent("test")}catch(err){global.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail),c}}Eventi.toString=Eventi.prototype.toString=function(){return"Eventi, v"+_.version},Eventi.fy=function(a){for(var b in _.fns)Object.defineProperty(a,b,{value:Eventi[b],writable:!0,configurable:!0});return a};var _=Eventi._={version:"1.3.5",global:new Function("return this")(),noop:function(){},slice:function(a,b){return Array.prototype.slice.call(a,b)},copy:function(a,b,c){if("object"==typeof a)for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c])},async:global.setImmediate&&setImmediate.bind(global)||function(a){return setTimeout(a,0)},resolveRE:/^([\w\$]+)?((\.[\w\$]+)|\[(\d+|'(\\'|[^'])+'|"(\\"|[^"])+")\])*$/,resolve:function(reference,context,tested){if(tested||_.resolveRE.test(reference)){context=context||global;try{return eval("context"+("["!==reference.charAt(0)?"."+reference:reference))}catch(e){}}},create:function(a,b){var c={text:a+""};a=_.parse(c.text,c,c),_.copy(b,c),"bubbles"in c||(c.bubbles=!0);var d=new CustomEvent(a,c);for(var e in c)_.skip.indexOf(e)<0&&(d[_.prop(e)]=c[e]);return d},skip:"bubbles cancelable detail type".split(" "),prop:function(a){return a},parse:function(a,b,c){return _.parsers.forEach(function(d){a=a.replace(d[0],function(){var a=_.slice(arguments,1);return a.unshift(b,c),d[1].apply(b,a)||""})}),a?b.type=a:a},parsers:[[/^(\W*)_/,function(a,b,c){return a.bubbles=!1,c}],[/\((.*)\)/,function(a,b,c){try{a.detail=_.resolve(c)||JSON.parse(c)}catch(d){a.detail=c}}],[/#(\w+)/g,function(a,b,c){(a.tags||(a.tags=[])).push(c),a[c]=!0}],[/^(\w+):/,function(a,b,c){a.category=c}]],fn:function(a,b){Eventi[a]=_.fns[a]=function(c){var d=_.slice(arguments);(!c||"string"==typeof c||c instanceof Event)&&d.unshift(c=this&&this!==Eventi?this:_.global),d.length>b&&(d[b]=d.slice(b),d=d.slice(0,b+1)),d[1]&&"string"!=typeof d[1]||(d[1]=_.split.ter(d[1]));var e,f=_[a];if(!c.nodeType&&c!==_.global&&"length"in c)for(var g=0,h=c.length;h>g;g++)e=f.apply(d[0]=c[g],d);else e=f.apply(c,d);return void 0===e?this:e}},fns:{},split:{guard:{"(":")"},ter:function(a,b){var c,d=[],e="";if(a){b=_.slice(arguments,1),b.unshift(" ");for(var f=0,g=a.length;g>f;f++){var h=a.charAt(f);!c&&b.indexOf(h)>=0?(e&&d.push(e),e=""):(e+=h,c?c===h&&("\\"===e.charAt(e.length-2)?e=e.replace("\\"+h,h):c=null):c=_.split.guard[h])}e&&d.push(e)}else d.push("");return d}}};_.parsers.unshift([/^(\W*)\//,function(a,b,c){return b.global=!0,c}]),_.fire=function(a,b,c){return b instanceof Event?(b.data=c,_.dispatch(a,b),b):_.fireAll(a,b,{data:c})},_.fireAll=function(a,b,c){for(var d,e=0;e<b.length;e++)d=_.create(b[e],c),_.dispatch(a,d);return d},_.dispatch=function(a,b,c){b.global&&(a=_.global),(a.dispatchEvent||a[_key]||_.noop).call(a,b),a.parentObject&&b.bubbles&&!b.propagationStopped&&_.dispatch(a.parentObject,b,!0),!c&&b.singleton&&_.singleton(a,b)},_.fn("fire",2),_.parsers.unshift([/^(\W*)\!/,function(a,b,c){return b.important=!0,c}]),_.on=function(a,b,c,d){if(a!==_.global&&1===b.length&&""===b[0]&&(b=a,a=_.global),Array.isArray(b))for(var e=0,f=b.length;f>e;e++)_.handler(a,b[e],c,d);else{void 0!==c&&(d=d?d.unshift(c)&&d:[c]);for(var g in b)_.handler(a,g,b[g],d)}},_.handler=function(a,b,c,d){var e={target:a,fn:c,data:d,text:b,event:{}};return _.parse(b,e.event,e),delete e.event.tags,a!==_&&Eventi.fire(_,"on:handler",e),e.fn!==_.noop&&(a=e.global===!0?_.global:e.target,_.handlers(a,e.event.type).push(e)),e},_.handlers=function(a,b){var c=_.listener(a),d=c.s[b];return d||(d=c.s[b]=[],a.addEventListener&&a.addEventListener(b,c,_.capture.indexOf(b)>=0)),d},_.capture=["focus","blur"];var _key=_._key="_eventi"+Date.now();if(_.listener=function(a){var b=a[_key];return b||(b=function(a){var c=b.s[a.type];c&&_.handle(a,c)},b.s={},Object.defineProperty(a,_key,{value:b,writeable:!1,configurable:!0})),b},_.handle=function(a,b){for(var c,d=0;d<b.length&&(!_.matches(a,(c=b[d]).event)||(_.execute(a,c),!a.immediatePropagationStopped));d++);},_.execute=function(a,b){var c=[a],d=b.fn,e={target:b.target,args:c};if(a.data&&c.push.apply(c,a.data),b.data&&c.push.apply(c,b.data),b.filters)for(var f=0,g=b.filters.length;g>f&&e.target;f++)b.filters[f].call(e,a,b);if(e.target){try{d.apply(e.target,e.args)}catch(h){_.async(function(){throw h})}b.end&&b.end.apply(e.target,e.args)&&_.unhandle(b)}},_.filter=function(a,b){a.filters=a.filters||[],a.filters.push(b)},_.unhandle=function(a){a.fn=_.noop},_.matches=function(a,b){for(var c in b)if(b[c]!==a[c])return!1;return!0},_.fn("on",3),_.split.guard["<"]=">",_.parsers.unshift([/<(.+)>/,function(a,b,c){b.selector=c,_.delegate&&a!==b&&_.filter(b,_.delegate)}]),global.Element){_.delegate=function(a,b){this.target=_.closest(a.target,b.selector)},_.closest=function(a,b){for(;a&&a.matches;){if(a.matches(b))return a;a=a.parentNode}};var Ep=Element.prototype,aS="atchesSelector";Ep.matches||Object.defineProperty(Ep,"matches",{value:Ep["webkitM"+aS]||Ep["mozM"+aS]||Ep["msM"+aS]})}_.parsers.unshift([/=>(\w+)$/,function(a,b,c){b.alias=c,b!==a&&(b.data=b.data||[],b.data.push(c))}]),_.alias=function(a,b,c){return function(a){var d=_.slice(arguments),e="object"!=typeof a||!a.dispatchEvent&&!a[_key]?0:1;return d.splice(e,0,b),this.apply(c,d)}},Eventi.alias=function(a,b){"string"==typeof a&&(b=a,a=Eventi);var c,d=_.split.ter(b);for(var e in _.fns)for(var f=0,g=d.length;g>f;f++)c={},_.parse(d[f],c,c),c.alias=c.alias||c.type,a[e][c.alias]=_.alias(c.alias,d[f],a);return c},document&&(_.init=function(){for(var a=document.querySelectorAll("[eventi],[data-eventi]"),b=0,c=a.length;c>b;b++){var d=a[b],e=d.getAttribute("data-eventi")||d.getAttribute("eventi");e!==d.eventi&&(_.off&&d.eventi&&Eventi.off(d,d.eventi,_.declared),d.eventi=e,_.declare(d,e))}(a.length||document.querySelector("[click],[data-click]"))&&Eventi.on("click keyup",_.check)},_.declare=function(a,b){for(var c=_.split.ter(b),d=0,e=c.length;e>d;d++)Eventi.on(a,c[d],_.declared)},_.declared=function(a,b){b="string"==typeof b?b:a.type;for(var c=_.declarers(this,b,a.target),d=0,e=c.length;e>d;d++)_.respond(c[d],b,a)},_.declarers=function(a,b,c){for(var d="["+b+"],[data-"+b+"]",e=[],f=!1;c&&c.matches;){if(c.matches(d)&&e.push(c),c===a){f=!0;break}c=c.parentNode}return f?e:a.querySelectorAll(d)},_.respond=function(a,b,c){var d=a.getAttribute("data-"+b)||a.getAttribute(b)||b;if(d){var e=_.resolve(d,a)||_.resolve(d);"function"==typeof e?e.call(a,c):Eventi.fire(a,d,c)}},_.check=function(a){var b=a.target.getAttribute&&("click"===a.type&&_.click(a.target)||13===a.keyCode&&_.click(a.target,!0));b&&(_.declared.call(document.documentElement,a,"click"),"noDefault"!==b||_.allowDefault(a.target)||a.preventDefault())},_.allowDefault=function(a){return"radio"===a.type||"checkbox"===a.type},_.click=function(a,b){var c=a.getAttribute("click");if(!b&&c&&"false"!==c)return"noDefault";if(!a.isContentEditable){var d=a.nodeName.toLowerCase();return"textarea"!==d&&("select"!==d||b)&&(b?!("a"===d&&a.getAttribute("href")||"button"===d||"input"===d&&_.buttonRE.test(a.type)):"input"!==d||_.buttonRE.test(a.type))}},_.buttonRE=/^(submit|button|reset)$/,Eventi.on("DOMContentLoaded",_.init)),_.split.guard["["]="]",_.parsers.push([/\[([^ ]+)\]/,function(a,b,c){for(var d;(d=c.indexOf("-"))>0;)a[c.substring(0,d)+"Key"]=!0,c=c.substring(d+1);c&&(a.keyCode=_.codes[c]||parseInt(c,10)||c)}]),_.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,capsLock:20,escape:27,start:91,command:224,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,"delete":46,multiply:106,plus:107,minus:109,point:110,divide:111,numLock:144,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222,space:32};for(var n=0;10>n;n++)_.codes["num"+n]=96+n;for(var f=1;13>f;f++)_.codes["f"+f]=111+f;if("abcdefghijklmnopqrstuvwxyz 0123456789".split("").forEach(function(a){_.codes[a]=a.toUpperCase().charCodeAt(0)}),Eventi.on(_,"on:handler",function(a,b){b.event.keyCode&&!b.event.type&&(b.event.type="keyup")}),_.split.guard["@"]="@",_.parsers.unshift([/@([^@]+)(@|$)/,function(a,b,c){b.location=c,_.location&&a!==b&&_.locationHandler(c,b)}]),global.history&&global.location){var intercept=function(a){_[a]=history[a],history[a]=function(){var b=_[a].apply(this,arguments);return _.dispatch(_.global,new CustomEvent("pushstate")),b}};intercept("pushState"),intercept("replaceState");var current;_.location=function(a,b){return b=b||decodeURI(location.pathname+location.search+location.hash),b!==current&&_.dispatch(_.global,new Eventi("location",{oldLocation:current,location:current=b,srcEvent:a})),current},_.setLocation=function(a,b,c){if("string"!=typeof b&&(c=b,b=a.location),b){var d=_.keys(b);d&&(b=d.reduce(function(a,b){return a.replace(new RegExp("\\{"+b+"\\}","g"),c[b]||location[b]||"")},b)),b!==current&&(a.location!==b?history.pushState(null,null,encodeURI(b)):(_.pushState.call(history,null,null,encodeURI(b)),current=b))}},_.keys=function(a){var b=a.match(/\{\w+\}/g);return b&&b.map(function(a){return a.substring(1,a.length-1)})},_.locationHandler=function(a,b){var c=a;"`"===a.charAt(0)?c=c.substring(1,c.length-1):(c=c.replace(/([.*+?^=!:$(|\[\/\\])/g,"\\$1"),(b.keys=_.keys(c))?c=c.replace(/\{[\w@\-\.]+\}/g,"([^/?#]+)"):c.replace(/\{/g,"\\{")),b.uriRE=new RegExp(c),_.filter(b,_.locationFilter)},_.locationFilter=function(a,b){var c=(a.location||current).match(b.uriRE);c?(this.args.splice.apply(this.args,[1,0].concat(c)),b.keys&&(this.args[1]=b.keys.reduce(function(a,b){return a[b]=c.shift(),a},{match:c.shift()}))):this.target=void 0},Eventi.on("!popstate !hashchange !pushstate",_.location).on("!location",_.setLocation).on(_,"on:handler",function(a,b){b.location&&!b.event.type&&(b.event.type="location"),"location"===b.event.type&&(b.global=!0,current||_.location(),_.execute(new Eventi("location",{location:current,srcEvent:a}),b))})}_.off=function(a,b,c){var d=a[_key];if(d){for(var e=0,f=b.length;f>e;e++){var g={event:{},handler:{},fn:c,text:b[e]};if(_.parse(b[e],g.event,g.handler),delete g.event.tags,delete g.handler.filters,delete g.handler.end,a!==_&&Eventi.fire(_,"off:filter",g),g.event.type)_.clean(g.event.type,g,d,a);else for(var h in d.s)_.clean(h,g,d,a)}_.empty(d.s)&&delete a[_key]}},_.unhandle=function(a){_.off(a.target,[a.text],a.fn)},_.empty=function(a){for(var b in a)return!b;return!0},_.clean=function(a,b,c,d){var e=c.s[a];if(e){for(var f=0,g=e.length;g>f;f++)if(_.cleans(e[f],b)){var h=e.splice(f--,1)[0];d!==_&&Eventi.fire(_,"off:cleaned",h),g--}e.length||(d.removeEventListener&&d.removeEventListener(a,c,_.capture.indexOf(a)>=0),delete c.s[a])}},_.cleans=function(a,b){return _.matches(a.event,b.event)&&_.matches(a,b.handler)&&(!a.important||b.handler.important&&_.matches(b.event,a.event))&&(!b.fn||b.fn===a.fn)},_.fn("off",3),_.parsers.unshift([/^(\W*)\^/,function(a,b,c){return b.singleton=!0,a!==b&&_.filter(b,_.before),c}]),_.singleton=function(a,b){_.remember(a,b),b.bubbles&&!b.propagationStopped&&a!==_.global&&_.singleton(a.parentNode||a.parentObject||_.global,b)};var _skey=_._skey="^"+_key;_.remember=function(a,b){var c=a[_skey]||[];c.length||Object.defineProperty(a,_skey,{value:c,configurable:!0}),b[_skey]=!0,c.push(b)},_.before=function(a,b){_.unhandle(b),b.fn=_.noop,a[_skey]||_.remember(this.target,a)},Eventi.on(_,"on:handler",function(a,b){if(b.singleton)for(var c=b.target[_skey]||[],d=0,e=c.length;e>d;d++){var f=c[d];if(_.matches(f,b.event)){_.execute(f,b);break}}}),document&&Eventi.on("DOMContentLoaded",function(a){Eventi.fire(document.documentElement,"^ready",a)}),_.parsers.unshift([/\$(\!?\w+(\.\w+)*)/,function(a,b,c){b.endtest=c,b.end=_.endTest(c)}]),_.endTest=function(a){var b=parseInt(a,10);if(b)return function(){return!--b};var c="!"===a.charAt(0);return c&&(a=a.substring(1)),a&&_.resolveRE.test(a)?function(){var b=_.resolve(a,this,!0);return void 0===b&&(b=_.resolve(a,!0)),"function"==typeof b&&(b=b.apply(this,arguments)),c?!b:b}:void 0},_.fireAll=function(a,b,c,d){for(var e,f,g=0;g<b.length;g++){f=c.sequence=_.split.ter(b[g],"+",",");for(var h=d||0;h<f.length&&(!e||!e.isSequencePaused());h++)f[h]?(c.index=h,e=c.previousEvent=_.create(f[h],c),_.sequence(e,c,a),_.dispatch(a,e)):f.splice(h--,1)}return e},_.sequence=function(a,b,c,d){a.resumeSequence=function(a){d&&(d=!1,_.fireAll(c,[b.sequence.join(",")],b,a||b.index+1))},a.pauseSequence=function(a){return d!==!1?(d=!0,a&&a.then(this.resumeSequence)):void 0},a.isSequencePaused=function(){return!!d}},_.combo={convert:function(a,b,c){a.event=_.combo.event(b),a.data&&"number"==typeof a.data[0]&&(a.timeout=a.data.shift()),delete a.singleton,delete a.selector,delete a.location,delete a.filters,delete a.endtest,delete a.end,a.texts=c,a.ordered=c.ordered,a.reset=_.combo.reset.bind(a),a.handlers=c.map(function(b,c){return _.handler(a.target,b,_.combo.eventFn.bind(a,c))}),a.reset()},event:function(a){return _.combo[a]||(_.combo[a]={category:"combo",type:"_"+ ++_.combo.count})},split:function(a){var b=_.split.ter(a,"+");return b.length>1?b.ordered=!1:(b=_.split.ter(a,","),b.length>1&&(b.ordered=!0)),b},count:0,reset:function(){this.clear&&clearTimeout(this.clear),this.unfired=this.texts.slice(),this.events=[]},eventFn:function(a,b){if(this.timeout&&!this.clear&&(this.clear=setTimeout(this.reset,this.timeout)),this.events.indexOf(b)<0&&(!this.ordered||a-1===this.unfired.lastIndexOf(""))&&(this.unfired[a]="",this.events.push(b),!this.unfired.join(""))){var c=_.create("combo:"+this.event.type);c.events=this.events,c.text=this.text,_.dispatch(this.target,c),this.reset()}}},Eventi.on(_,"on:handler",function(a,b){var c=b.text,d=_.combo.split(c);d.length>1&&_.combo.convert(b,c,d)}).on(_,"off:filter",function(a,b){_.combo.split(b.text).length>1&&(b.event=_.combo.event(b.text))}).on(_,"off:cleaned",function(a,b){b.handlers&&b.handlers.forEach(_.unhandle)});var sP=Event.prototype.stopPropagation||_.noop,sIP=Event.prototype.stopImmediatePropagation||_.noop;CustomEvent.prototype.stopPropagation=function(){this.propagationStopped=!0,sP.call(this)},CustomEvent.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=!0,sIP.call(this)};var define=global.define||_.noop;define((global.exports||global).Eventi=Eventi)}(this,this.document);
!function(global,document){"use strict";function Eventi(a){return"string"==typeof a?_.create.apply(_,arguments):Eventi.fy(this)}try{new CustomEvent("test")}catch(err){global.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail),c}}Eventi.toString=Eventi.prototype.toString=function(){return"Eventi, v"+_.version},Eventi.fy=function(a){for(var b in _.fns)Object.defineProperty(a,b,{value:Eventi[b],writable:!0,configurable:!0});return a};var _=Eventi._={version:"1.3.6",global:new Function("return this")(),noop:function(){},slice:function(a,b){return Array.prototype.slice.call(a,b)},copy:function(a,b,c){if("object"==typeof a)for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c])},async:global.setImmediate&&setImmediate.bind(global)||function(a){return setTimeout(a,0)},resolveRE:/^([\w\$]+)?((\.[\w\$]+)|\[(\d+|'(\\'|[^'])+'|"(\\"|[^"])+")\])*$/,resolve:function(reference,context,tested){if(tested||_.resolveRE.test(reference)){context=context||global;try{return eval("context"+("["!==reference.charAt(0)?"."+reference:reference))}catch(e){}}},create:function(a,b){var c={text:a+""};a=_.parse(c.text,c,c),_.copy(b,c),"bubbles"in c||(c.bubbles=!0);var d=new CustomEvent(a,c);for(var e in c)_.skip.indexOf(e)<0&&(d[_.prop(e)]=c[e]);return d},skip:"bubbles cancelable detail type".split(" "),prop:function(a){return a},parse:function(a,b,c){return _.parsers.forEach(function(d){a=a.replace(d[0],function(){var a=_.slice(arguments,1);return a.unshift(b,c),d[1].apply(b,a)||""})}),a?b.type=a:a},parsers:[[/^(\W*)_/,function(a,b,c){return a.bubbles=!1,c}],[/\((.*)\)/,function(a,b,c){try{a.detail=_.resolve(c)||JSON.parse(c)}catch(d){a.detail=c}}],[/#(\w+)/g,function(a,b,c){(a.tags||(a.tags=[])).push(c),a[c]=!0}],[/^(\w+):/,function(a,b,c){a.category=c}]],fn:function(a,b){Eventi[a]=_.fns[a]=function(c){var d=_.slice(arguments);(!c||"string"==typeof c||c instanceof Event)&&d.unshift(c=this&&this!==Eventi?this:_.global),d.length>b&&(d[b]=d.slice(b),d=d.slice(0,b+1)),d[1]&&"string"!=typeof d[1]||(d[1]=_.split.ter(d[1]));var e,f=_[a];if(!c.nodeType&&c!==_.global&&"length"in c)for(var g=0,h=c.length;h>g;g++)e=f.apply(d[0]=c[g],d);else e=f.apply(c,d);return void 0===e?this:e}},fns:{},split:{guard:{"(":")"},ter:function(a,b){var c,d=[],e="";if(a){b=_.slice(arguments,1),b.unshift(" ");for(var f=0,g=a.length;g>f;f++){var h=a.charAt(f);!c&&b.indexOf(h)>=0?(e&&d.push(e),e=""):(e+=h,c?c===h&&("\\"===e.charAt(e.length-2)?e=e.replace("\\"+h,h):c=null):c=_.split.guard[h])}e&&d.push(e)}else d.push("");return d}}};_.parsers.unshift([/^(\W*)\//,function(a,b,c){return b.global=!0,c}]),_.fire=function(a,b,c){return b instanceof Event?(b.data=c,_.dispatch(a,b),b):_.fireAll(a,b,{data:c})},_.fireAll=function(a,b,c){for(var d,e=0;e<b.length;e++)d=_.create(b[e],c),_.dispatch(a,d);return d},_.dispatch=function(a,b,c){b.global&&(a=_.global),(a.dispatchEvent||a[_key]||_.noop).call(a,b),a.parentObject&&b.bubbles&&!b.propagationStopped&&_.dispatch(a.parentObject,b,!0),!c&&b.singleton&&_.singleton(a,b)},_.fn("fire",2),_.parsers.unshift([/^(\W*)\!/,function(a,b,c){return b.important=!0,c}]),_.on=function(a,b,c,d){if(a!==_.global&&1===b.length&&""===b[0]&&(b=a,a=_.global),Array.isArray(b))for(var e=0,f=b.length;f>e;e++)_.handler(a,b[e],c,d);else{void 0!==c&&(d=d?d.unshift(c)&&d:[c]);for(var g in b)_.handler(a,g,b[g],d)}},_.handler=function(a,b,c,d){var e={target:a,fn:c,data:d,text:b,event:{}};return _.parse(b,e.event,e),delete e.event.tags,a!==_&&Eventi.fire(_,"on:handler",e),e.fn!==_.noop&&(a=e.global===!0?_.global:e.target,_.handlers(a,e.event.type).push(e)),e},_.handlers=function(a,b){var c=_.listener(a),d=c.s[b];return d||(d=c.s[b]=[],a.addEventListener&&a.addEventListener(b,c,_.capture.indexOf(b)>=0)),d},_.capture=["focus","blur"];var _key=_._key="_eventi"+Date.now();if(_.listener=function(a){var b=a[_key];return b||(b=function(a){var c=b.s[a.type];c&&_.handle(a,c)},b.s={},Object.defineProperty(a,_key,{value:b,writeable:!1,configurable:!0})),b},_.handle=function(a,b){for(var c,d=0;d<b.length&&(!_.matches(a,(c=b[d]).event)||(_.execute(a,c),!a.immediatePropagationStopped));d++);},_.execute=function(a,b){var c=[a],d=b.fn,e={target:b.target,args:c};if(a.data&&c.push.apply(c,a.data),b.data&&c.push.apply(c,b.data),b.filters)for(var f=0,g=b.filters.length;g>f&&e.target;f++)b.filters[f].call(e,a,b);if(e.target){try{d.apply(e.target,e.args)}catch(h){_.async(function(){throw h})}b.end&&b.end.apply(e.target,e.args)&&_.unhandle(b)}},_.filter=function(a,b){a.filters=a.filters||[],a.filters.push(b)},_.unhandle=function(a){a.fn=_.noop},_.matches=function(a,b){for(var c in b)if(b[c]!==a[c])return!1;return!0},_.fn("on",3),_.split.guard["<"]=">",_.parsers.unshift([/<(.+)>/,function(a,b,c){b.selector=c,_.delegate&&a!==b&&_.filter(b,_.delegate)}]),global.Element){_.delegate=function(a,b){this.target=_.closest(a.target,b.selector)},_.closest=function(a,b){for(;a&&a.matches;){if(a.matches(b))return a;a=a.parentNode}};var Ep=Element.prototype,aS="atchesSelector";Ep.matches||Object.defineProperty(Ep,"matches",{value:Ep["webkitM"+aS]||Ep["mozM"+aS]||Ep["msM"+aS]})}_.parsers.unshift([/=>(\w+)$/,function(a,b,c){b.alias=c,b!==a&&(b.data=b.data||[],b.data.push(c))}]),_.alias=function(a,b,c){return function(a){var d=_.slice(arguments),e="object"!=typeof a||!a.dispatchEvent&&!a[_key]?0:1;return d.splice(e,0,b),this.apply(c,d)}},Eventi.alias=function(a,b){"string"==typeof a&&(b=a,a=Eventi);var c,d=_.split.ter(b);for(var e in _.fns)for(var f=0,g=d.length;g>f;f++)c={},_.parse(d[f],c,c),c.alias=c.alias||c.type,a[e][c.alias]=_.alias(c.alias,d[f],a);return c},document&&(_.init=function(){for(var a=document.querySelectorAll("[eventi],[data-eventi]"),b=0,c=a.length;c>b;b++){var d=a[b],e=d.getAttribute("data-eventi")||d.getAttribute("eventi");e!==d.eventi&&(_.off&&d.eventi&&Eventi.off(d,d.eventi,_.declared),d.eventi=e,_.declare(d,e))}(a.length||document.querySelector("[click],[data-click]"))&&Eventi.on("click keyup",_.check)},_.declare=function(a,b){for(var c=_.split.ter(b),d=0,e=c.length;e>d;d++)Eventi.on(a,c[d],_.declared)},_.declared=function(a,b){b="string"==typeof b?b:a.type;for(var c=_.declarers(this,b,a.target),d=0,e=c.length;e>d;d++)_.respond(c[d],b,a)},_.declarers=function(a,b,c){for(var d="["+b+"],[data-"+b+"]",e=[],f=!1;c&&c.matches;){if(c.matches(d)&&e.push(c),c===a){f=!0;break}c=c.parentNode}return f?e:a.querySelectorAll(d)},_.respond=function(a,b,c){var d=a.getAttribute("data-"+b)||a.getAttribute(b)||b;if(d){var e=_.resolve(d,a)||_.resolve(d);"function"==typeof e?e.call(a,c):Eventi.fire(a,d,c)}},_.check=function(a){var b=a.target.getAttribute&&("click"===a.type&&_.click(a.target)||13===a.keyCode&&_.click(a.target,!0));b&&(_.declared.call(document.documentElement,a,"click"),"noDefault"!==b||_.allowDefault(a.target)||a.preventDefault())},_.allowDefault=function(a){return"radio"===a.type||"checkbox"===a.type},_.click=function(a,b){var c=a.getAttribute("click");if(!b&&c&&"false"!==c)return"noDefault";if(!a.isContentEditable){var d=a.nodeName.toLowerCase();return"textarea"!==d&&("select"!==d||b)&&(b?!("a"===d&&a.getAttribute("href")||"button"===d||"input"===d&&_.buttonRE.test(a.type)):"input"!==d||_.buttonRE.test(a.type))}},_.buttonRE=/^(submit|button|reset)$/,Eventi.on("DOMContentLoaded",_.init)),_.split.guard["["]="]",_.parsers.push([/\[([^ ]+)\]/,function(a,b,c){for(var d;(d=c.indexOf("-"))>0;)a[c.substring(0,d)+"Key"]=!0,c=c.substring(d+1);c&&(a.keyCode=_.codes[c]||parseInt(c,10)||c)}]),_.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,capsLock:20,escape:27,start:91,command:224,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,"delete":46,multiply:106,plus:107,minus:109,point:110,divide:111,numLock:144,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222,space:32};for(var n=0;10>n;n++)_.codes["num"+n]=96+n;for(var f=1;13>f;f++)_.codes["f"+f]=111+f;if("abcdefghijklmnopqrstuvwxyz 0123456789".split("").forEach(function(a){_.codes[a]=a.toUpperCase().charCodeAt(0)}),Eventi.on(_,"on:handler",function(a,b){b.event.keyCode&&!b.event.type&&(b.event.type="keyup")}),_.split.guard["@"]="@",_.parsers.unshift([/@([^@]+)(@|$)/,function(a,b,c){b.location=c,_.location&&a!==b&&_.locationHandler(c,b)}]),global.history&&global.location){var intercept=function(a){_[a]=history[a],history[a]=function(){var b=_[a].apply(this,arguments);return _.dispatch(_.global,new CustomEvent("pushstate")),b}};intercept("pushState"),intercept("replaceState");var current;_.location=function(a){var b=_.getLocation();b!==current&&_.dispatch(_.global,new Eventi("location",{oldLocation:current,location:current=b,srcEvent:a}))},_.getLocation=function(){return decodeURI(location.pathname+location.search+location.hash)},_.setLocation=function(a,b,c){if(!a.oldLocation&&("string"!=typeof b&&(c=b,b=a.location),b)){var d=_.keys(b);d&&(b=d.reduce(function(a,b){return a.replace(new RegExp("\\{"+b+"\\}","g"),c[b]||location[b]||"")},b)),a.stopPropagation(),a.stopImmediatePropagation(),history.pushState(null,null,encodeURI(b))}},_.keys=function(a){var b=a.match(/\{\w+\}/g);return b&&b.map(function(a){return a.substring(1,a.length-1)})},_.locationHandler=function(a,b){var c=a;"`"===a.charAt(0)?c=c.substring(1,c.length-1):(c=c.replace(/([.*+?^=!:$(|\[\/\\])/g,"\\$1"),(b.keys=_.keys(c))?c=c.replace(/\{[\w@\-\.]+\}/g,"([^/?#]+)"):c.replace(/\{/g,"\\{")),b.uriRE=new RegExp(c),_.filter(b,_.locationFilter)},_.locationFilter=function(a,b){var c=(a.location||current).match(b.uriRE);c?(this.args.splice.apply(this.args,[1,0].concat(c)),b.keys&&(this.args[1]=b.keys.reduce(function(a,b){return a[b]=c.shift(),a},{match:c.shift()}))):this.target=void 0};var historyTypes=["popstate","hashchange","pushstate"];Eventi.on("!"+historyTypes.join(" !"),_.location).on("!location",_.setLocation).on(_,"on:handler",function(a,b){var c=b.event.type;b.location&&!c&&(c=b.event.type="location"),"location"===c?(b.global=!0,current||(current=_.getLocation()),_.execute(new Eventi("location",{location:current,srcEvent:a}),b)):historyTypes.indexOf(c)>=0&&(b.global=!0)})}_.off=function(a,b,c){var d=a[_key];if(d){for(var e=0,f=b.length;f>e;e++){var g={event:{},handler:{},fn:c,text:b[e]};if(_.parse(b[e],g.event,g.handler),delete g.event.tags,delete g.handler.filters,delete g.handler.end,a!==_&&Eventi.fire(_,"off:filter",g),g.event.type)_.clean(g.event.type,g,d,a);else for(var h in d.s)_.clean(h,g,d,a)}_.empty(d.s)&&delete a[_key]}},_.unhandle=function(a){_.off(a.target,[a.text],a.fn)},_.empty=function(a){for(var b in a)return!b;return!0},_.clean=function(a,b,c,d){var e=c.s[a];if(e){for(var f=0,g=e.length;g>f;f++)if(_.cleans(e[f],b)){var h=e.splice(f--,1)[0];d!==_&&Eventi.fire(_,"off:cleaned",h),g--}e.length||(d.removeEventListener&&d.removeEventListener(a,c,_.capture.indexOf(a)>=0),delete c.s[a])}},_.cleans=function(a,b){return _.matches(a.event,b.event)&&_.matches(a,b.handler)&&(!a.important||b.handler.important&&_.matches(b.event,a.event))&&(!b.fn||b.fn===a.fn)},_.fn("off",3),_.parsers.unshift([/^(\W*)\^/,function(a,b,c){return b.singleton=!0,a!==b&&_.filter(b,_.before),c}]),_.singleton=function(a,b){_.remember(a,b),b.bubbles&&!b.propagationStopped&&a!==_.global&&_.singleton(a.parentNode||a.parentObject||_.global,b)};var _skey=_._skey="^"+_key;_.remember=function(a,b){var c=a[_skey]||[];c.length||Object.defineProperty(a,_skey,{value:c,configurable:!0}),b[_skey]=!0,c.push(b)},_.before=function(a,b){_.unhandle(b),b.fn=_.noop,a[_skey]||_.remember(this.target,a)},Eventi.on(_,"on:handler",function(a,b){if(b.singleton)for(var c=b.target[_skey]||[],d=0,e=c.length;e>d;d++){var f=c[d];if(_.matches(f,b.event)){_.execute(f,b);break}}}),document&&Eventi.on("DOMContentLoaded",function(a){Eventi.fire(document.documentElement,"^ready",a)}),_.parsers.unshift([/\$(\!?\w+(\.\w+)*)/,function(a,b,c){b.endtest=c,b.end=_.endTest(c)}]),_.endTest=function(a){var b=parseInt(a,10);if(b)return function(){return!--b};var c="!"===a.charAt(0);return c&&(a=a.substring(1)),a&&_.resolveRE.test(a)?function(){var b=_.resolve(a,this,!0);return void 0===b&&(b=_.resolve(a,!0)),"function"==typeof b&&(b=b.apply(this,arguments)),c?!b:b}:void 0},_.fireAll=function(a,b,c,d){for(var e,f,g=0;g<b.length;g++){f=c.sequence=_.split.ter(b[g],"+",",");for(var h=d||0;h<f.length&&(!e||!e.isSequencePaused());h++)f[h]?(c.index=h,e=c.previousEvent=_.create(f[h],c),_.sequence(e,c,a),_.dispatch(a,e)):f.splice(h--,1)}return e},_.sequence=function(a,b,c,d){a.resumeSequence=function(a){d&&(d=!1,_.fireAll(c,[b.sequence.join(",")],b,a||b.index+1))},a.pauseSequence=function(a){return d!==!1?(d=!0,a&&a.then(this.resumeSequence)):void 0},a.isSequencePaused=function(){return!!d}},_.combo={convert:function(a,b,c){a.event=_.combo.event(b),a.data&&"number"==typeof a.data[0]&&(a.timeout=a.data.shift()),delete a.singleton,delete a.selector,delete a.location,delete a.filters,delete a.endtest,delete a.end,a.texts=c,a.ordered=c.ordered,a.reset=_.combo.reset.bind(a),a.handlers=c.map(function(b,c){return _.handler(a.target,b,_.combo.eventFn.bind(a,c))}),a.reset()},event:function(a){return _.combo[a]||(_.combo[a]={category:"combo",type:"_"+ ++_.combo.count})},split:function(a){var b=_.split.ter(a,"+");return b.length>1?b.ordered=!1:(b=_.split.ter(a,","),b.length>1&&(b.ordered=!0)),b},count:0,reset:function(){this.clear&&clearTimeout(this.clear),this.unfired=this.texts.slice(),this.events=[]},eventFn:function(a,b){if(this.timeout&&!this.clear&&(this.clear=setTimeout(this.reset,this.timeout)),this.events.indexOf(b)<0&&(!this.ordered||a-1===this.unfired.lastIndexOf(""))&&(this.unfired[a]="",this.events.push(b),!this.unfired.join(""))){var c=_.create("combo:"+this.event.type);c.events=this.events,c.text=this.text,_.dispatch(this.target,c),this.reset()}}},Eventi.on(_,"on:handler",function(a,b){var c=b.text,d=_.combo.split(c);d.length>1&&_.combo.convert(b,c,d)}).on(_,"off:filter",function(a,b){_.combo.split(b.text).length>1&&(b.event=_.combo.event(b.text))}).on(_,"off:cleaned",function(a,b){b.handlers&&b.handlers.forEach(_.unhandle)});var sP=Event.prototype.stopPropagation||_.noop,sIP=Event.prototype.stopImmediatePropagation||_.noop;CustomEvent.prototype.stopPropagation=function(){this.propagationStopped=!0,sP.call(this)},CustomEvent.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=!0,sIP.call(this)};var define=global.define||_.noop;define((global.exports||global).Eventi=Eventi)}(this,this.document);

@@ -1,2 +0,2 @@

/*! Eventi - v1.3.5 - 2014-10-15
/*! Eventi - v1.3.6 - 2014-10-21
* https://github.com/esha/Eventi

@@ -39,3 +39,3 @@ * Copyright (c) 2014 ESHA Research; Licensed MIT */

var _ = Eventi._ = {
version: "1.3.5",
version: "1.3.6",
global: new Function('return this')(),

@@ -42,0 +42,0 @@ noop: function(){},

{
"name": "eventi",
"title": "Eventi",
"version": "1.3.5",
"version": "1.3.6",
"homepage": "https://github.com/esha/Eventi",

@@ -6,0 +6,0 @@ "author": {

@@ -442,2 +442,3 @@ # Eventi

* 2014-10-15 [v1.3.5][] (beta - location event fixes)
* 2014-10-20 [v1.3.6][] (beta - location event fix, use sourcemap friendly main file for bower package)

@@ -457,1 +458,2 @@ [v0.5.0]: https://github.com/esha/Eventi/tree/0.5.0

[v1.3.5]: https://github.com/esha/Eventi/tree/1.3.5
[v1.3.6]: https://github.com/esha/Eventi/tree/1.3.6

@@ -21,4 +21,4 @@ _.split.guard['@'] = '@';

var current;
_.location = function(e, uri) {
uri = uri || decodeURI(location.pathname + location.search + location.hash);
_.location = function(e) {
var uri = _.getLocation();
if (uri !== current) {

@@ -31,24 +31,25 @@ _.dispatch(_.global, new Eventi('location', {

}
return current;
};
_.getLocation = function() {
return decodeURI(location.pathname + location.search + location.hash);
};
_.setLocation = function(e, uri, fill) {
if (typeof uri !== "string") {
fill = uri;
uri = e.location;
}
if (uri) {
var keys = _.keys(uri);
if (keys) {
uri = keys.reduce(function(s, key) {
return s.replace(new RegExp('\\{'+key+'\\}',"g"),
fill[key] || location[key] || '');
}, uri);
// user-fired set events should not have oldLocation prop
if (!e.oldLocation) {
if (typeof uri !== "string") {
fill = uri;
uri = e.location;
}
if (uri !== current) {
if (e.location !== uri) {
history.pushState(null, null, encodeURI(uri));
} else {
_.pushState.call(history, null, null, encodeURI(uri));
current = uri;
if (uri) {
var keys = _.keys(uri);
if (keys) {
uri = keys.reduce(function(s, key) {
return s.replace(new RegExp('\\{'+key+'\\}',"g"),
fill[key] || location[key] || '');
}, uri);
}
// don't share this event with other handlers
e.stopPropagation();
e.stopImmediatePropagation();
history.pushState(null, null, encodeURI(uri));
}

@@ -93,18 +94,21 @@ }

};
Eventi.on('!popstate !hashchange !pushstate', _.location)
var historyTypes = ['popstate','hashchange','pushstate'];
Eventi.on('!'+(historyTypes.join(' !')), _.location)
.on('!location', _.setLocation)
.on(_, 'on:handler', function location(e, handler) {
if (handler.location && !handler.event.type) {
handler.event.type = 'location';
var type = handler.event.type;
if (handler.location && !type) {
type = handler.event.type = 'location';
}
if (handler.event.type === 'location') {
// force global
if (type === 'location') {
handler.global = true;
// try for current uri match immediately
// try immediately for current uri match
if (!current) {
_.location();
current = _.getLocation();
}
_.execute(new Eventi('location',{location:current, srcEvent:e}), handler);
} else if (historyTypes.indexOf(type) >= 0) {
handler.global = true;
}
});
}

@@ -64,2 +64,3 @@ (function() {

equal(e.type, 'keyup');
Eventi.off('[alt]');
});

@@ -66,0 +67,0 @@ Eventi.fire('keyup[alt] other[alt]');

@@ -105,3 +105,3 @@ (function() {

Eventi.on('location#all', function(e) {
equal(e.location, _.location(), 'should have current uri');
equal(e.location, _.getLocation(), 'should have current uri');
Eventi.off('location#all');

@@ -124,13 +124,21 @@ });

test('location set via event', function() {
expect(5);
var uri = _.location(),
fired = false;
expect(8);
var oldLocation = _.getLocation(),
newLocation = oldLocation + '?view=foo',
locationEvent = false,
pushstateEvent = false;
Eventi.on('location@?view={view}', function(e, match) {
equal(e.oldLocation, uri);
equal(e.location, location.pathname + '?view=foo');
equal(e.oldLocation, oldLocation);
equal(e.location, newLocation);
equal(e.srcEvent && e.srcEvent.type, 'pushstate');
equal(match.view, 'foo');
ok(!fired);
fired = true;
ok(!locationEvent, 'should only be handled once');
locationEvent = true;
Eventi.off('location');
}).on('pushstate', function(e) {
ok(!e.location, 'no location with pushstate notifications');
equal(_.getLocation(), newLocation);
ok(!pushstateEvent, 'should only be handled once');
pushstateEvent = true;
Eventi.off('pushstate');
history.pushState(null,null,home);

@@ -186,3 +194,3 @@ });

test('_.location', function() {
equal(_.location(), decodeURI(location.pathname+location.search+location.hash));
equal(_.getLocation(), decodeURI(location.pathname+location.search+location.hash));
});

@@ -189,0 +197,0 @@

Sorry, the diff of this file is not supported yet

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