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

alloy-widget-nl.fokkezb.drawer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alloy-widget-nl.fokkezb.drawer - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

32

controllers/widget.js

@@ -296,11 +296,11 @@ var args = arguments[0] || {};

$.on = function (event, callback, context) {
return $.instance.addEventListener(event, callback);
return $.instance.addEventListener(translateEvent(event), callback);
};
$.off = function (event, callback, context) {
return $.instance.removeEventListener(event, callback);
return $.instance.removeEventListener(translateEvent(event), callback);
};
$.trigger = function (event, args) {
return $.instance.fireEvent(event, args);
return $.instance.fireEvent(translateEvent(event), args);
};

@@ -349,1 +349,27 @@

});
function translateEvent(event) {
if (mod === 'dk.napp.drawer') {
if (event === 'draweropen') {
event = 'windowDidOpen';
}
if (event === 'drawerclose') {
event = 'windowDidClose';
}
} else {
if (event === 'windowDidOpen') {
event = 'draweropen';
}
if (event === 'windowDidClose') {
event = 'drawerclose';
}
}
return event;
}

2

package.json
{
"version": "1.1.2",
"version": "1.1.3",
"description": "An Alloy widget wrapping the NappDrawer and DrawerLayout module for Facebook-like sliding side menus.",

@@ -4,0 +4,0 @@ "author": "Fokke Zandbergen",

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