Skip to content

Commit

Permalink
Merge pull request #18 from magicmarkker/master
Browse files Browse the repository at this point in the history
add overlay option
  • Loading branch information
blivesta committed Nov 25, 2015
2 parents b86dd70 + 8ae0274 commit fe8407a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/js/drawer.js
Expand Up @@ -17,7 +17,8 @@
iscroll: {
mouseWheel: true,
preventDefault: false
}
},
showOverlay: true
}, options);

__.settings = {
Expand Down Expand Up @@ -51,7 +52,9 @@

var iScroll = new IScroll('.' + __.settings.class.nav, options.iscroll);

__.addOverlay.call(_this);
if (options.showOverlay) {
__.addOverlay.call(_this);
}

$('.' + __.settings.class.toggle).on('click.' + namespace, function() {
__.toggle.call(_this);
Expand Down

0 comments on commit fe8407a

Please sign in to comment.