Permalink
Browse files

Adding containerElement in the default options list

  • Loading branch information...
1 parent 74eb718 commit 2891b8c08f554cc30944b5086924955dd8c21562 @Leimi Leimi committed Mar 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/tappable.js
View
@@ -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,

0 comments on commit 2891b8c

Please sign in to comment.