mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Side menu content scoping fix
This commit is contained in:
@ -17,13 +17,15 @@
|
||||
this._leftShowing = false;
|
||||
this._isDragging = false;
|
||||
|
||||
this.content.onDrag = function(e) {
|
||||
self._handleDrag(e);
|
||||
};
|
||||
if(this.content) {
|
||||
this.content.onDrag = function(e) {
|
||||
self._handleDrag(e);
|
||||
};
|
||||
|
||||
this.content.endDrag = function(e) {
|
||||
self._endDrag(e);
|
||||
};
|
||||
this.content.endDrag = function(e) {
|
||||
self._endDrag(e);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
ionic.controllers.SideMenuController.prototype = {
|
||||
@ -33,7 +35,17 @@
|
||||
* @param {object} content
|
||||
*/
|
||||
setContent: function(content) {
|
||||
var self = this;
|
||||
|
||||
this.content = content;
|
||||
|
||||
this.content.onDrag = function(e) {
|
||||
self._handleDrag(e);
|
||||
};
|
||||
|
||||
this.content.endDrag = function(e) {
|
||||
self._endDrag(e);
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user