Skip to content

Commit f7eb393

Browse files
committed
Merge pull request #6 from RoamTouch/develop
#5 Analytics: It should send the score.
2 parents 62238a3 + 63f45b4 commit f7eb393

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

dist/gesturekit.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* gesturekit.js v1.1.0
2+
* gesturekit.js v1.1.1
33
* http://gesturekit.com/
44
*
55
* Copyright (c) 2014, RoamTouch
@@ -72,8 +72,9 @@ Analytics.prototype.sendGestures = function () {
7272

7373
for (key in this.collection) {
7474
gestures.push({
75-
"count": this.collection[key].length,
76-
"gesture_id": key
75+
'gesture_id': key,
76+
'score': this.collection[key][0].score,
77+
'count': this.collection[key].length
7778
});
7879
}
7980

@@ -726,7 +727,7 @@ gesturekit = new Gesturekit();
726727
/**
727728
* gesturekit version.
728729
*/
729-
gesturekit.version = '1.1.0';
730+
gesturekit.version = '1.1.1';
730731

731732
// Expose gesturekit
732733
module.exports = gesturekit;

dist/gesturekit.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gesturekit",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A JavaScript library to recognize gestures on web browsers.",
55
"author": "Guille Paz <[email protected]>",
66
"scripts": {

src/Analytics.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ Analytics.prototype.sendGestures = function () {
6363

6464
for (key in this.collection) {
6565
gestures.push({
66-
"count": this.collection[key].length,
67-
"gesture_id": key
66+
'gesture_id': key,
67+
'score': this.collection[key][0].score,
68+
'count': this.collection[key].length
6869
});
6970
}
7071

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gesturekit = new Gesturekit();
1717
/**
1818
* gesturekit version.
1919
*/
20-
gesturekit.version = '1.1.0';
20+
gesturekit.version = '1.1.1';
2121

2222
// Expose gesturekit
2323
module.exports = gesturekit;

0 commit comments

Comments
 (0)