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

oribella-doubletap

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oribella-doubletap - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="0.3.2"></a>
## [0.3.2](https://github.com/oribella/doubletap/compare/v0.3.1...v0.3.2) (2015-12-11)
### Bug Fixes
* **dist:** update dist ([387a003](https://github.com/oribella/doubletap/commit/387a003))
<a name="0.3.1"></a>

@@ -2,0 +12,0 @@ ## [0.3.1](https://github.com/oribella/doubletap/compare/v0.3.0...v0.3.1) (2015-12-10)

115

dist/amd/index.js

@@ -9,42 +9,13 @@ "use strict";

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
class Doubletap {
static defaultOptions() {
return {
touches: 1,
prio: 90,
which: 1,
timeThreshold: 250
};
}
}
var _createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
var Doubletap = exports.Doubletap = (function () {
_createClass(Doubletap, null, [{
key: "defaultOptions",
value: function defaultOptions() {
return {
touches: 1,
prio: 90,
which: 1,
timeThreshold: 250
};
}
}]);
function Doubletap(subscriber, element) {
_classCallCheck(this, Doubletap);
constructor(subscriber, element) {
this.subscriber = subscriber;

@@ -58,43 +29,39 @@ this.element = element;

_createClass(Doubletap, [{
key: "bind",
value: function bind(on, element, remove) {
this.removeTap = on(element, "tap", {
selector: this.subscriber.selector,
options: this.subscriber.options,
end: this.tapend.bind(this)
});
this.remove = remove;
bind(on, element, remove) {
this.removeTap = on(element, "tap", {
selector: this.subscriber.selector,
options: this.subscriber.options,
end: this.tapend.bind(this)
});
this.remove = remove;
}
unbind() {
if (this.count > 1) {
this.removeTap();
return true;
}
}, {
key: "unbind",
value: function unbind() {
if (this.count > 1) {
return false;
}
tapend(event, pagePoints) {
this.data.pagePoints = pagePoints;
++this.count;
if (this.count === 1) {
this.timeoutId = setTimeout(() => {
this.remove();
this.removeTap();
return true;
}
return false;
}, this.subscriber.options.timeThreshold);
} else if (this.count === 2) {
clearTimeout(this.timeoutId);
this.result = this.subscriber.end(event, this.data, this.element);
return _oribellaFramework.RETURN_FLAG.map(this.result);
}
}, {
key: "tapend",
value: function tapend(event, pagePoints) {
var _this = this;
}
this.data.pagePoints = pagePoints;
++this.count;
if (this.count === 1) {
this.timeoutId = setTimeout(function () {
_this.remove();
_this.removeTap();
}, this.subscriber.options.timeThreshold);
} else if (this.count === 2) {
clearTimeout(this.timeoutId);
this.result = this.subscriber.end(event, this.data, this.element);
return _oribellaFramework.RETURN_FLAG.map(this.result);
}
}
}]);
}
return Doubletap;
})();
exports.Doubletap = Doubletap;
});
"use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
Object.defineProperty(exports, "__esModule", {

@@ -12,20 +10,12 @@ value: true

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Doubletap = exports.Doubletap = (function () {
_createClass(Doubletap, null, [{
key: "defaultOptions",
value: function defaultOptions() {
return {
touches: 1,
prio: 90,
which: 1,
timeThreshold: 250
};
}
}]);
function Doubletap(subscriber, element) {
_classCallCheck(this, Doubletap);
class Doubletap {
static defaultOptions() {
return {
touches: 1,
prio: 90,
which: 1,
timeThreshold: 250
};
}
constructor(subscriber, element) {
this.subscriber = subscriber;

@@ -38,43 +28,32 @@ this.element = element;

}
_createClass(Doubletap, [{
key: "bind",
value: function bind(on, element, remove) {
this.removeTap = on(element, "tap", {
selector: this.subscriber.selector,
options: this.subscriber.options,
end: this.tapend.bind(this)
});
this.remove = remove;
bind(on, element, remove) {
this.removeTap = on(element, "tap", {
selector: this.subscriber.selector,
options: this.subscriber.options,
end: this.tapend.bind(this)
});
this.remove = remove;
}
unbind() {
if (this.count > 1) {
this.removeTap();
return true;
}
}, {
key: "unbind",
value: function unbind() {
if (this.count > 1) {
return false;
}
tapend(event, pagePoints) {
this.data.pagePoints = pagePoints;
++this.count;
if (this.count === 1) {
this.timeoutId = setTimeout(() => {
this.remove();
this.removeTap();
return true;
}
return false;
}, this.subscriber.options.timeThreshold);
} else if (this.count === 2) {
clearTimeout(this.timeoutId);
this.result = this.subscriber.end(event, this.data, this.element);
return _oribellaFramework.RETURN_FLAG.map(this.result);
}
}, {
key: "tapend",
value: function tapend(event, pagePoints) {
var _this = this;
this.data.pagePoints = pagePoints;
++this.count;
if (this.count === 1) {
this.timeoutId = setTimeout(function () {
_this.remove();
_this.removeTap();
}, this.subscriber.options.timeThreshold);
} else if (this.count === 2) {
clearTimeout(this.timeoutId);
this.result = this.subscriber.end(event, this.data, this.element);
return _oribellaFramework.RETURN_FLAG.map(this.result);
}
}
}]);
return Doubletap;
})();
}
}
exports.Doubletap = Doubletap;
"use strict";
System.register(["oribella-framework"], function (_export) {
var RETURN_FLAG, _createClass, Doubletap;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var RETURN_FLAG;
return {

@@ -17,36 +10,13 @@ setters: [function (_oribellaFramework) {

execute: function () {
_createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
class Doubletap {
static defaultOptions() {
return {
touches: 1,
prio: 90,
which: 1,
timeThreshold: 250
};
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
_export("Doubletap", Doubletap = (function () {
_createClass(Doubletap, null, [{
key: "defaultOptions",
value: function defaultOptions() {
return {
touches: 1,
prio: 90,
which: 1,
timeThreshold: 250
};
}
}]);
function Doubletap(subscriber, element) {
_classCallCheck(this, Doubletap);
constructor(subscriber, element) {
this.subscriber = subscriber;

@@ -60,46 +30,37 @@ this.element = element;

_createClass(Doubletap, [{
key: "bind",
value: function bind(on, element, remove) {
this.removeTap = on(element, "tap", {
selector: this.subscriber.selector,
options: this.subscriber.options,
end: this.tapend.bind(this)
});
this.remove = remove;
}
}, {
key: "unbind",
value: function unbind() {
if (this.count > 1) {
this.removeTap();
return true;
}
bind(on, element, remove) {
this.removeTap = on(element, "tap", {
selector: this.subscriber.selector,
options: this.subscriber.options,
end: this.tapend.bind(this)
});
this.remove = remove;
}
return false;
unbind() {
if (this.count > 1) {
this.removeTap();
return true;
}
}, {
key: "tapend",
value: function tapend(event, pagePoints) {
var _this = this;
this.data.pagePoints = pagePoints;
++this.count;
return false;
}
if (this.count === 1) {
this.timeoutId = setTimeout(function () {
_this.remove();
tapend(event, pagePoints) {
this.data.pagePoints = pagePoints;
++this.count;
_this.removeTap();
}, this.subscriber.options.timeThreshold);
} else if (this.count === 2) {
clearTimeout(this.timeoutId);
this.result = this.subscriber.end(event, this.data, this.element);
return RETURN_FLAG.map(this.result);
}
if (this.count === 1) {
this.timeoutId = setTimeout(() => {
this.remove();
this.removeTap();
}, this.subscriber.options.timeThreshold);
} else if (this.count === 2) {
clearTimeout(this.timeoutId);
this.result = this.subscriber.end(event, this.data, this.element);
return RETURN_FLAG.map(this.result);
}
}]);
}
return Doubletap;
})());
}

@@ -106,0 +67,0 @@ _export("Doubletap", Doubletap);

{
"name": "oribella-doubletap",
"version": "0.3.1",
"version": "0.3.2",
"description": "Doubletap gesture",

@@ -37,4 +37,4 @@ "license": "MIT",

"jspm": "^0.16.15",
"oribella-dev": "^0.1.4"
"oribella-dev": "^0.1.6"
}
}
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