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

@avvio-reply/clickortouch

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avvio-reply/clickortouch - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

13

index.js

@@ -10,2 +10,3 @@ ///

var $ = window.jQuery || require('jquery')
, Utility = require('@avvio-reply/lib').utility
, touchmove = 'touchmove'

@@ -19,2 +20,3 @@ , touchend = 'touchend'

var ClickOrTouch = function (selector, useLock, onEvent, options) {
var self = this;

@@ -44,3 +46,4 @@ var _options = $.extend({}, {

var self = this;
self.onEvent = onEvent;
self.uuid = Utility.uuidv4();

@@ -89,7 +92,7 @@ self.__ct_handler = function (e, userParam) {

/** evaluate the core handler only on isolated click/touchend */
onEvent.call(self, e, [userParam]);
self.onEvent.call(self, e, [userParam]);
};
if (Object && Object.defineProperty)
Object.defineProperty(self.__ct_handler, "name", { value: "__ct_handler" });
Object.defineProperty(self.__ct_handler, "name", { value: "__ct_handler_" + selector });

@@ -118,4 +121,4 @@ if (useLock)

if (event && eventNames.indexOf(event.type) != -1 &&
event.selector == selector &&
event.handler.name == '__ct_handler')
// event.selector == selector &&
event.handler.name == '__ct_handler_' + event.selector)
/** remove existing ct binding - jquery each is ok with dynamic collection changes */

@@ -122,0 +125,0 @@ $(document).off(events, selector, event.handler);

{
"name": "@avvio-reply/clickortouch",
"version": "1.2.5",
"version": "1.2.6",
"description": "Module to simplify handling of click or touch events between browsers and tablet/mobile. Includes lock/release feature.",

@@ -19,4 +19,5 @@ "main": "index.js",

"devDependencies": {
"@avvio-reply/lib": "file:///development/node/modules/lib",
"jquery": "^2.1.4"
}
}
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