chore: rename calculate_positions to calculate_dimensions

This commit is contained in:
vieron
2014-02-07 14:48:52 +01:00
parent b0b4464a5c
commit 3e426c9301
+4 -3
View File
@@ -76,13 +76,13 @@
var fn = Draggable.prototype;
fn.init = function() {
this.calculate_positions();
this.calculate_dimensions();
this.$container.css('position', 'relative');
this.disabled = false;
this.events();
$(window).bind('resize.gridster-draggable',
throttle($.proxy(this.calculate_positions, this), 200));
throttle($.proxy(this.calculate_dimensions, this), 200));
};
fn.events = function() {
@@ -208,12 +208,13 @@
};
fn.calculate_positions = function(e) {
fn.manage_scroll = function(data) {
this.scroll_in('x', data);
this.scroll_in('y', data);
};
fn.calculate_dimensions = function(e) {
this.window_height = $window.height();
this.window_width = $window.width();
};