Skip to content

Commit

Permalink
Merge pull request #6 from RoamTouch/develop
Browse files Browse the repository at this point in the history
#5 Analytics: It should send the score.
  • Loading branch information
pazguille committed May 19, 2014
2 parents 62238a3 + 63f45b4 commit f7eb393
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions dist/gesturekit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* gesturekit.js v1.1.0
* gesturekit.js v1.1.1
* http://gesturekit.com/
*
* Copyright (c) 2014, RoamTouch
Expand Down Expand Up @@ -72,8 +72,9 @@ Analytics.prototype.sendGestures = function () {

for (key in this.collection) {
gestures.push({
"count": this.collection[key].length,
"gesture_id": key
'gesture_id': key,
'score': this.collection[key][0].score,
'count': this.collection[key].length
});
}

Expand Down Expand Up @@ -726,7 +727,7 @@ gesturekit = new Gesturekit();
/**
* gesturekit version.
*/
gesturekit.version = '1.1.0';
gesturekit.version = '1.1.1';

// Expose gesturekit
module.exports = gesturekit;
Expand Down
2 changes: 1 addition & 1 deletion dist/gesturekit.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gesturekit",
"version": "1.1.0",
"version": "1.1.1",
"description": "A JavaScript library to recognize gestures on web browsers.",
"author": "Guille Paz <[email protected]>",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/Analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ Analytics.prototype.sendGestures = function () {

for (key in this.collection) {
gestures.push({
"count": this.collection[key].length,
"gesture_id": key
'gesture_id': key,
'score': this.collection[key][0].score,
'count': this.collection[key].length
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gesturekit = new Gesturekit();
/**
* gesturekit version.
*/
gesturekit.version = '1.1.0';
gesturekit.version = '1.1.1';

// Expose gesturekit
module.exports = gesturekit;

0 comments on commit f7eb393

Please sign in to comment.