Skip to content

Commit

Permalink
Merge 7af8c20 into 9cb55b9
Browse files Browse the repository at this point in the history
  • Loading branch information
heniotierra committed Jan 27, 2015
2 parents 9cb55b9 + 7af8c20 commit ce0f1c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Expand Up @@ -49,7 +49,8 @@ function createTouchList(target, list) {
list = [list];
}
list = list.map(function (entry, index) {
return createTouch(entry[0], entry[1], target, index + 1);
var x = entry[0], y = entry[1], id = entry[2] ? entry[2] : index + 1;
return createTouch(x, y, target, id);
});
return document.createTouchList.apply(document, list);
}
Expand Down

0 comments on commit ce0f1c5

Please sign in to comment.