oops should be for #50

This commit is contained in:
Nick Wientge 2015-01-31 12:08:27 -08:00
parent adccb0a988
commit 087e60b87f

View file

@ -5,7 +5,10 @@ IonSideMenu = {
Template.ionSideMenuContainer.created = function () {
this.data = this.data || {};
this.side = this.data.side || 'both';
this.disableDrag = this.data.disableDrag || false;
this.dragContent = true;
if (typeof this.data.dragContent != 'undefined') {
this.dragContent = this.data.dragContent
}
};
Template.ionSideMenuContainer.rendered = function () {
@ -28,7 +31,7 @@ Template.ionSideMenuContainer.rendered = function () {
IonSideMenu.snapper = new Snap({
element: $snapperEl.get(0),
disable: disable,
touchToDrag: !this.disableDrag
touchToDrag: this.dragContent
});
};