fixed: drag api access from gridster and draggable.disable method.

Fixes #25. I broke this in the issue #17 and commit 8e7a5c.
This commit is contained in:
vieron
2012-08-13 22:32:35 +02:00
parent 0fadccaa2f
commit 81c96b92d5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -313,13 +313,13 @@
fn.disable = function(){
this.$container.off(pointer_events.start);
this.$body.off(pointer_events.end);
this.$container.off(this.on_select_start);
this.$container.off('selectstart', this.on_select_start);
};
fn.destroy = function(){
this.disable();
$.removeData(this.$container, 'draggable');
$.removeData(this.$container, 'drag');
};
+1 -1
View File
@@ -410,7 +410,7 @@
}, 60)
});
this.drag_api = this.$el.drag(draggable_options).data('draggable');
this.drag_api = this.$el.drag(draggable_options).data('drag');
return this;
};