mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-27 22:07:15 -06:00
oops should be for #50
This commit is contained in:
parent
adccb0a988
commit
087e60b87f
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue