New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bean

Package Overview
Dependencies
Maintainers
0
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bean - npm Package Compare versions

Comparing version 0.1.9 to 0.2.1

14

bean.js

@@ -26,3 +26,3 @@ /*!

var node = child.parentNode;
while (node != null) {
while (node !== null) {
if (node == parent) {

@@ -70,2 +70,3 @@ return true;

handlers = events[type] || (events[type] = {}),
originalFn = fn,
uid = retrieveUid(fn, orgType.replace(namespace, ''));

@@ -92,2 +93,3 @@ if (handlers[uid]) {

fn.__uid = uid;
fn.__originalFn = originalFn;
return type == 'unload' ? element : (collected[retrieveUid(element)] = element);

@@ -169,3 +171,6 @@ },

for (k in events) {
events.hasOwnProperty(k) && rm(element, type || k, events[k]);
if (events.hasOwnProperty(k)) {
rm(element, type || k, events[k]);
delete events[k]; // remove unused leaf keys
}
}

@@ -209,5 +214,6 @@ }

var events = retrieveEvents(from), obj, k;
var uid = retrieveUid(element);
obj = type ? events[type] : events;
for (k in obj) {
obj.hasOwnProperty(k) && (type ? add : clone)(element, type || from, type ? obj[k] : k);
obj.hasOwnProperty(k) && (type ? add : clone)(element, type || from, type ? obj[k].__originalFn : k);
}

@@ -283,3 +289,3 @@ return element;

if (!related) {
return related == null;
return related === null;
}

@@ -286,0 +292,0 @@ return (related != this && related.prefix != 'xul' && !/document/.test(this.toString()) && !isDescendant(this, related));

@@ -10,2 +10,2 @@ /*!

*/
!function(a){function F(a){var b=a.relatedTarget;if(!b)return b==null;return b!=this&&b.prefix!="xul"&&!/document/.test(this.toString())&&!p(this,b)}var b=1,c={},d={},e=/over|out/,f=/[^\.]*(?=\..*)\.|.*/,g=/\..*/,h="addEventListener",i="attachEvent",j="removeEventListener",k="detachEvent",l=a.document||{},m=l.documentElement||{},n=m[h],o=n?h:i,p=function(a,b){var c=b.parentNode;while(c!=null){if(c==a)return!0;c=c.parentNode}},q=function(a,c){return a.__uid=c||a.__uid||b++},r=function(a){var b=q(a);return c[b]=c[b]||{}},s=n?function(a,b,c,d){a[d?h:j](b,c,!1)}:function(a,b,c,d,e){e&&d&&(a["_on"+e]=a["_on"+e]||0),a[d?i:k]("on"+b,c)},t=function(b,c,d){return function(e){e=D(e||((this.ownerDocument||this.document||this).parentWindow||a).event);return c.apply(b,[e].concat(d))}},u=function(a,b,c,d,e){return function(f){(d?d.call(this,f):n?!0:f&&f.propertyName=="_on"+c||!f)&&b.apply(a,[f].concat(e))}},v=function(a,b,c,e){var h=b.replace(g,""),i=r(a),j=i[h]||(i[h]={}),k=q(c,b.replace(f,""));if(j[k])return a;var l=G[h];l&&(c=l.condition?u(a,c,h,l.condition):c,h=l.base||h);var m=E[h];c=m?t(a,c,e):u(a,c,h,!1,e),m=n||m;if(h=="unload"){var p=c;c=function(){w(a,h,c)&&p()}}a[o]&&s(a,m?h:"propertychange",c,!0,!m&&h),j[k]=c,c.__uid=k;return h=="unload"?a:d[q(a)]=a},w=function(a,b,c){var d,e,h,i,j=r(a),k=b.replace(g,"");if(!j||!j[k])return a;e=b.replace(f,""),h=e?e.split("."):[c.__uid];for(i=h.length;i--;){d=h[i],c=j[k][d],delete j[k][d];if(a[o]){k=G[k]?G[k].base:k;var l=n||E[k];s(a,l?k:"propertychange",c,!1,!l&&k)}}return a},x=function(a,b,c){return function(d){var e=typeof a=="string"?c(a,this):a;for(var f=d.target;f&&f!=this;f=f.parentNode)for(var g=e.length;g--;)if(e[g]==f)return b.apply(f,arguments)}},y=function(a,b,c,d,e){if(typeof b=="object"&&!c)for(var f in b)b.hasOwnProperty(f)&&y(a,f,b[f]);else{var g=typeof c=="string",h=(g?c:b).split(" ");c=g?x(b,d,e):c;for(var i=h.length;i--;)v(a,h[i],c,Array.prototype.slice.call(arguments,g?4:3))}return a},z=function(a,b,c){var d,e,h,i,j=typeof b=="string",k=j&&b.replace(f,""),l=w,m=r(a);if(j&&/\s/.test(b)){b=b.split(" "),i=b.length-1;while(z(a,b[i])&&i--);return a}h=j?b.replace(g,""):b;if(!m||j&&!m[h])return a;if(typeof c=="function")l(a,h,c);else if(k)l(a,b);else{l=h?l:z,e=j&&h,h=h?c||m[h]||h:m;for(d in h)h.hasOwnProperty(d)&&l(a,e||d,h[d])}return a},A=function(a,b,c){var d,e,h,i=b.split(" ");for(h=i.length;h--;){b=i[h].replace(g,"");var j=E[b],k=i[h].replace(f,""),l=r(a)[b];if(k){k=k.split(".");for(e=k.length;e--;)l[k[e]]&&l[k[e]].apply(a,c)}else if(!c&&a[o])B(j,b,a);else for(e in l)l.hasOwnProperty(e)&&l[e].apply(a,c)}return a},B=n?function(b,c,d){evt=document.createEvent(b?"HTMLEvents":"UIEvents"),evt[b?"initEvent":"initUIEvent"](c,!0,!0,a,1),d.dispatchEvent(evt)}:function(a,b,c){a?c.fireEvent("on"+b,document.createEventObject()):c["_on"+b]++},C=function(a,b,c){var d=r(b),e,f;e=c?d[c]:d;for(f in e)e.hasOwnProperty(f)&&(c?y:C)(a,c||b,c?e[f]:f);return a},D=function(a){var b={};if(!a)return b;var c=a.type,d=a.target||a.srcElement;b.preventDefault=D.preventDefault(a),b.stopPropagation=D.stopPropagation(a),b.target=d&&d.nodeType==3?d.parentNode:d;if(~c.indexOf("key"))b.keyCode=a.which||a.keyCode;else if(/click|mouse|menu/i.test(c)){b.rightClick=a.which==3||a.button==2,b.pos={x:0,y:0};if(a.pageX||a.pageY)b.clientX=a.pageX,b.clientY=a.pageY;else if(a.clientX||a.clientY)b.clientX=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,b.clientY=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;e.test(c)&&(b.relatedTarget=a.relatedTarget||a[(c=="mouseover"?"from":"to")+"Element"])}for(var f in a)f in b||(b[f]=a[f]);return b};D.preventDefault=function(a){return function(){a.preventDefault?a.preventDefault():a.returnValue=!1}},D.stopPropagation=function(a){return function(){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}};var E={click:1,dblclick:1,mouseup:1,mousedown:1,contextmenu:1,mousewheel:1,DOMMouseScroll:1,mouseover:1,mouseout:1,mousemove:1,selectstart:1,selectend:1,keydown:1,keypress:1,keyup:1,orientationchange:1,touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1,focus:1,blur:1,change:1,reset:1,select:1,submit:1,load:1,unload:1,beforeunload:1,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1},G={mouseenter:{base:"mouseover",condition:F},mouseleave:{base:"mouseout",condition:F},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}},H={add:y,remove:z,clone:C,fire:A},I=function(a){var b=z(a).__uid;b&&(delete d[b],delete c[b])};a[i]&&y(a,"unload",function(){for(var b in d)d.hasOwnProperty(b)&&I(d[b]);a.CollectGarbage&&CollectGarbage()});var J=a.bean;H.noConflict=function(){a.bean=J;return this},typeof module!="undefined"&&module.exports?module.exports=H:a.bean=H}(this)
!function(a){function F(a){var b=a.relatedTarget;if(!b)return b===null;return b!=this&&b.prefix!="xul"&&!/document/.test(this.toString())&&!p(this,b)}var b=1,c={},d={},e=/over|out/,f=/[^\.]*(?=\..*)\.|.*/,g=/\..*/,h="addEventListener",i="attachEvent",j="removeEventListener",k="detachEvent",l=a.document||{},m=l.documentElement||{},n=m[h],o=n?h:i,p=function(a,b){var c=b.parentNode;while(c!==null){if(c==a)return!0;c=c.parentNode}},q=function(a,c){return a.__uid=c||a.__uid||b++},r=function(a){var b=q(a);return c[b]=c[b]||{}},s=n?function(a,b,c,d){a[d?h:j](b,c,!1)}:function(a,b,c,d,e){e&&d&&(a["_on"+e]=a["_on"+e]||0),a[d?i:k]("on"+b,c)},t=function(b,c,d){return function(e){e=D(e||((this.ownerDocument||this.document||this).parentWindow||a).event);return c.apply(b,[e].concat(d))}},u=function(a,b,c,d,e){return function(f){(d?d.call(this,f):n?!0:f&&f.propertyName=="_on"+c||!f)&&b.apply(a,[f].concat(e))}},v=function(a,b,c,e){var h=b.replace(g,""),i=r(a),j=i[h]||(i[h]={}),k=c,l=q(c,b.replace(f,""));if(j[l])return a;var m=G[h];m&&(c=m.condition?u(a,c,h,m.condition):c,h=m.base||h);var p=E[h];c=p?t(a,c,e):u(a,c,h,!1,e),p=n||p;if(h=="unload"){var v=c;c=function(){w(a,h,c)&&v()}}a[o]&&s(a,p?h:"propertychange",c,!0,!p&&h),j[l]=c,c.__uid=l,c.__originalFn=k;return h=="unload"?a:d[q(a)]=a},w=function(a,b,c){var d,e,h,i,j=r(a),k=b.replace(g,"");if(!j||!j[k])return a;e=b.replace(f,""),h=e?e.split("."):[c.__uid];for(i=h.length;i--;){d=h[i],c=j[k][d],delete j[k][d];if(a[o]){k=G[k]?G[k].base:k;var l=n||E[k];s(a,l?k:"propertychange",c,!1,!l&&k)}}return a},x=function(a,b,c){return function(d){var e=typeof a=="string"?c(a,this):a;for(var f=d.target;f&&f!=this;f=f.parentNode)for(var g=e.length;g--;)if(e[g]==f)return b.apply(f,arguments)}},y=function(a,b,c,d,e){if(typeof b=="object"&&!c)for(var f in b)b.hasOwnProperty(f)&&y(a,f,b[f]);else{var g=typeof c=="string",h=(g?c:b).split(" ");c=g?x(b,d,e):c;for(var i=h.length;i--;)v(a,h[i],c,Array.prototype.slice.call(arguments,g?4:3))}return a},z=function(a,b,c){var d,e,h,i,j=typeof b=="string",k=j&&b.replace(f,""),l=w,m=r(a);if(j&&/\s/.test(b)){b=b.split(" "),i=b.length-1;while(z(a,b[i])&&i--);return a}h=j?b.replace(g,""):b;if(!m||j&&!m[h])return a;if(typeof c=="function")l(a,h,c);else if(k)l(a,b);else{l=h?l:z,e=j&&h,h=h?c||m[h]||h:m;for(d in h)h.hasOwnProperty(d)&&(l(a,e||d,h[d]),delete h[d])}return a},A=function(a,b,c){var d,e,h,i=b.split(" ");for(h=i.length;h--;){b=i[h].replace(g,"");var j=E[b],k=i[h].replace(f,""),l=r(a)[b];if(k){k=k.split(".");for(e=k.length;e--;)l[k[e]]&&l[k[e]].apply(a,c)}else if(!c&&a[o])B(j,b,a);else for(e in l)l.hasOwnProperty(e)&&l[e].apply(a,c)}return a},B=n?function(b,c,d){evt=document.createEvent(b?"HTMLEvents":"UIEvents"),evt[b?"initEvent":"initUIEvent"](c,!0,!0,a,1),d.dispatchEvent(evt)}:function(a,b,c){a?c.fireEvent("on"+b,document.createEventObject()):c["_on"+b]++},C=function(a,b,c){var d=r(b),e,f,g=q(a);e=c?d[c]:d;for(f in e)e.hasOwnProperty(f)&&(c?y:C)(a,c||b,c?e[f].__originalFn:f);return a},D=function(a){var b={};if(!a)return b;var c=a.type,d=a.target||a.srcElement;b.preventDefault=D.preventDefault(a),b.stopPropagation=D.stopPropagation(a),b.target=d&&d.nodeType==3?d.parentNode:d;if(~c.indexOf("key"))b.keyCode=a.which||a.keyCode;else if(/click|mouse|menu/i.test(c)){b.rightClick=a.which==3||a.button==2,b.pos={x:0,y:0};if(a.pageX||a.pageY)b.clientX=a.pageX,b.clientY=a.pageY;else if(a.clientX||a.clientY)b.clientX=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,b.clientY=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;e.test(c)&&(b.relatedTarget=a.relatedTarget||a[(c=="mouseover"?"from":"to")+"Element"])}for(var f in a)f in b||(b[f]=a[f]);return b};D.preventDefault=function(a){return function(){a.preventDefault?a.preventDefault():a.returnValue=!1}},D.stopPropagation=function(a){return function(){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}};var E={click:1,dblclick:1,mouseup:1,mousedown:1,contextmenu:1,mousewheel:1,DOMMouseScroll:1,mouseover:1,mouseout:1,mousemove:1,selectstart:1,selectend:1,keydown:1,keypress:1,keyup:1,orientationchange:1,touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1,focus:1,blur:1,change:1,reset:1,select:1,submit:1,load:1,unload:1,beforeunload:1,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1},G={mouseenter:{base:"mouseover",condition:F},mouseleave:{base:"mouseout",condition:F},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}},H={add:y,remove:z,clone:C,fire:A},I=function(a){var b=z(a).__uid;b&&(delete d[b],delete c[b])};a[i]&&y(a,"unload",function(){for(var b in d)d.hasOwnProperty(b)&&I(d[b]);a.CollectGarbage&&CollectGarbage()});var J=a.bean;H.noConflict=function(){a.bean=J;return this},typeof module!="undefined"&&module.exports?module.exports=H:a.bean=H}(this)
{
"name": "bean",
"description": "an events api for javascript",
"version": "0.1.9",
"version": "0.2.1",
"homepage": "https://github.com/fat/bean",

@@ -6,0 +6,0 @@ "authors": ["Jacob Thornton <@fat>"],

@@ -17,3 +17,3 @@ !function (context) {

var node = child.parentNode;
while (node != null) {
while (node !== null) {
if (node == parent) {

@@ -61,2 +61,3 @@ return true;

handlers = events[type] || (events[type] = {}),
originalFn = fn,
uid = retrieveUid(fn, orgType.replace(namespace, ''));

@@ -83,2 +84,3 @@ if (handlers[uid]) {

fn.__uid = uid;
fn.__originalFn = originalFn;
return type == 'unload' ? element : (collected[retrieveUid(element)] = element);

@@ -160,3 +162,6 @@ },

for (k in events) {
events.hasOwnProperty(k) && rm(element, type || k, events[k]);
if (events.hasOwnProperty(k)) {
rm(element, type || k, events[k]);
delete events[k]; // remove unused leaf keys
}
}

@@ -200,5 +205,6 @@ }

var events = retrieveEvents(from), obj, k;
var uid = retrieveUid(element);
obj = type ? events[type] : events;
for (k in obj) {
obj.hasOwnProperty(k) && (type ? add : clone)(element, type || from, type ? obj[k] : k);
obj.hasOwnProperty(k) && (type ? add : clone)(element, type || from, type ? obj[k].__originalFn : k);
}

@@ -274,3 +280,3 @@ return element;

if (!related) {
return related == null;
return related === null;
}

@@ -277,0 +283,0 @@ return (related != this && related.prefix != 'xul' && !/document/.test(this.toString()) && !isDescendant(this, related));

!function ($) {
var b = bean.noConflict(),
var b = require('bean'),
integrate = function (method, type, method2) {

@@ -4,0 +4,0 @@ var _args = type ? [type] : [];

{
"name": "sink-test",
"description": "test your javascript - headless, or in the browser",
"version": "0.0.5",
"version": "0.0.4",
"authors": ["Dustin Diaz <@ded>", "Jacob Thornton <@fat>"],

@@ -6,0 +6,0 @@ "keywords": ["testing", "unit tests", "headless", "boosh", "luke warm"],

@@ -8,2 +8,4 @@ Sink Test

It is used in other projects of mine such as [$script.js](http://github.com/polvero/script.js) and [Kizzy](http://github.com/polvero/kizzy) due to the async nature of dynamic script loading ($script) and asserting expired data from local storage (Kizzy).
How to write a Sink test

@@ -10,0 +12,0 @@ ------------------------

@@ -20,3 +20,3 @@ /*!

isHeadless ? (require('colors')) : String.prototype.__defineGetter__ && !function () {
isHeadless ? (require('colors')) : !function () {
each(['red', 'green', 'magenta', 'rainbow', 'yellow'], function (color) {

@@ -30,5 +30,2 @@ String.prototype.__defineGetter__(color, function () {

!isHeadless && window && !('console' in window) && !function () {
context.console = {log: function () {}};
}();

@@ -95,3 +92,3 @@ function reset() {

} else {
console.log((name + '...').yellow);
console && console.log((name + '...').yellow);
}

@@ -140,5 +137,5 @@

if (b) {
console.log((message + ' ✓').green);
console && console.log((message + ' ✓').green);
} else {
console.log((message + ' ✗').red);
console && console.log((message + ' ✗').red);
}

@@ -168,11 +165,3 @@ } else {

afterMethods = [];
var mod = ('MODULE: ' + name);
if (isHeadless) {
console.log(mod.magenta);
} else {
var li = document.createElement('li');
li.innerHTML = mod;
document.getElementById('tests').appendChild(li);
li.className = 'mod';
}
console && console.log(('MODULE: ' + name).magenta);
fn(test, ok, before, after);

@@ -190,8 +179,10 @@ currentSetName = name;

];
var color = allPass ? 'rainbow' : 'red',
status = allPass ? 'sink-pass' : 'sink-failure';
message = message[allPass ? 0 : 1].toUpperCase();
isHeadless ?
console.log(message[color]) :
(document.getElementById('tests').className = status);
if (isHeadless) {
message = message[allPass ? 0 : 1].toUpperCase();
if (allPass) {
console && console.log(message.rainbow);
} else {
console && console.log(message.red);
}
}
}();

@@ -198,0 +189,0 @@ }

@@ -114,2 +114,6 @@ //stub this for ie crap

})
sink('fire', function (test, ok) {
test('fire: should be able to fire an event', 1, function () {

@@ -130,2 +134,6 @@ var el = document.getElementById('input');

})
sink('custom', function (test, ok) {
test('custom: should be able to add single custom events', 1, function () {

@@ -139,3 +147,3 @@ var el = document.getElementById('input');

});
test('custom: should bubble up dom like traditional events', 1, function () {

@@ -151,3 +159,7 @@ if (!window.addEventListener) {

});
})
sink('event object', function (test, ok) {
test('event: should have correct target', 1, function () {

@@ -160,3 +172,3 @@ var el1 = document.getElementById('foo');

});
test('event: should have stop propagation method', 1, function () {

@@ -168,3 +180,3 @@ var el = document.getElementById('foo');

});
test('event: should have preventDefault method', 1, function () {

@@ -176,3 +188,3 @@ var el = document.getElementById('foo');

});
test('event: should have keyCode', 1, function () {

@@ -186,3 +198,7 @@ var el = document.getElementById('input');

});
})
sink('remove', function (test, ok) {
test('remove: should return the element passed in', 1, function () {

@@ -196,3 +212,3 @@ var el = document.getElementById('foo');

});
test('remove: should be able to remove a single event', 1, function () {

@@ -209,3 +225,3 @@ var el = document.getElementById('foo');

});
test('remove: should be able to remove mulitple events with an object literal', 1, function () {

@@ -228,3 +244,3 @@ var el = document.getElementById('input'),

});
test('remove: should be able to remove all events of a specific type', 2, function () {

@@ -245,3 +261,3 @@ var el = document.getElementById('input');

});
test('remove: should be able to remove all events of a specific type', 2, function () {

@@ -262,3 +278,3 @@ var el = document.getElementById('input');

});
test('remove: should be able to remove all events', 1, function () {

@@ -278,33 +294,49 @@ var el = document.getElementById('input'),

});
test('clone: should be able to clone events of a specific type from one element to another', 2, function () {
var el1 = document.getElementById('input2');
var el2 = document.getElementById('input');
})
sink('clone', function (test, ok, before) {
var el1 = document.getElementById('input');
var el2 = document.getElementById('input2');
before(function () {
bean.remove(el1);
bean.remove(el2);
bean.add(el1, 'click', function () {ok(true, 'clones events of a specific type from one element to another 1')});
bean.add(el1, 'click', function () {
})
test('clone: should be able to clone events of a specific type from one element to another', 2, function () {
bean.add(el2, 'click', function () {ok(true, 'clones events of a specific type from one element to another 1')});
bean.add(el2, 'click', function () {
ok(true, 'clone events of a specific type from one element to another 2');
bean.remove(el2);
bean.remove(el1);
});
bean.add(el1, 'keydown', function () {
bean.add(el2, 'keydown', function () {
ok(true, 'clone events of a specific type from one element to another 3');
bean.remove(el2);
bean.remove(el1);
});
bean.clone(el2, el1, 'click');
Syn.click(el2).key('j');
bean.clone(el1, el2, 'click');
Syn.click(el1).key('j');
});
test('clone: should be able to clone all events from one element to another', 3, function () {
var el1 = document.getElementById('input2');
var el2 = document.getElementById('input');
bean.remove(el1);
bean.remove(el2);
bean.add(el1, 'keypress', function () {ok(true, 'clones all events from one element to another 1');});
bean.add(el1, 'click', function () {ok(true, 'clones all events from one element to another 2');});
bean.add(el1, 'click', function () {ok(true, 'clonesall events from one element to another 3');});
bean.clone(el2, el1);
Syn.click(el2).key('j');
bean.add(el2, 'keypress', function () {ok(true, 'clones all events from one element to another 1');});
bean.add(el2, 'click', function () {ok(true, 'clones all events from one element to another 2');});
bean.add(el2, 'click', function () {ok(true, 'clonesall events from one element to another 3');});
bean.clone(el1, el2);
Syn.click(el1).key('j');
});
test('clone: should fire cloned event in scope of new element', 1, function () {
bean.add(el1, 'click', function () {
ok(this == el2, 'scope of "this" is the element that cloned the event')
})
bean.clone(el2, el1)
Syn.click(el2)
});
})
sink('delegation', function (test, ok) {
test('delegate: should be able to delegate on selectors', 4, function () {

@@ -326,3 +358,3 @@ var el1 = document.getElementById('foo');

});
test('delegate: should be able to delegate on arary', 4, function () {

@@ -344,3 +376,6 @@ var el1 = document.getElementById('foo');

});
})
sink('namespaces', function (test, ok) {
test('namespace: should be able to name handlers', 1, function () {

@@ -352,3 +387,3 @@ var el1 = document.getElementById('foo');

});
test('namespace: should be able to target namespaced event handlers with fire', 1, function () {

@@ -361,3 +396,3 @@ var el1 = document.getElementById('foo');

});
test('namespace: should be able to target multiple namespaced event handlers with fire', 2, function () {

@@ -371,3 +406,3 @@ var el1 = document.getElementById('foo');

});
test('namespace: should be able to remove handlers based on name', 1, function () {

@@ -381,3 +416,3 @@ var el1 = document.getElementById('foo');

});
test('namespace: should be able to remove multiple handlers based on name', 1, function () {

@@ -384,0 +419,0 @@ var el1 = document.getElementById('foo');

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