Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from Leimi/master

Adding containerElement in the default options list
  • Loading branch information...
commit 71639b77100a05622f4f2408853b11ca7abfea90 2 parents 74eb718 + 2891b8c
@cheeaun authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  source/tappable.js
View
3  source/tappable.js
@@ -27,6 +27,7 @@
var abs = Math.abs,
noop = function(){},
defaults = {
+ containerElement: d.body,
noScroll: false,
activeClass: 'tappable-active',
onTap: noop,
@@ -85,7 +86,7 @@
var options = {};
for (var key in defaults) options[key] = opts[key] || defaults[key];
- var el = options.containerElement || d.body,
+ var el = options.containerElement,
startTarget,
elBound,
cancel = false,
Please sign in to comment.
Something went wrong with that request. Please try again.