diff --git a/dist/jquery.gridster.js b/dist/jquery.gridster.js
index ae79d869a8..6bc440eca0 100644
--- a/dist/jquery.gridster.js
+++ b/dist/jquery.gridster.js
@@ -409,7 +409,6 @@
this.set_dom_grid_height();
this.$wrapper.addClass('ready');
this.draggable();
- this.next_position(2, 2);
$(window).bind(
'resize', throttle($.proxy(this.recalculate_faux_grid, this), 200));
@@ -476,16 +475,16 @@
size_y: size_y,
size_x: size_x
});
- };
- };
- };
+ }
+ }
+ }
if (valid_pos.length) {
- this.next_position = this.sort_by_row_asc(valid_pos)[0];
- return this.next_position;
- };
+ var next_position = this.sort_by_row_asc(valid_pos)[0];
+ return next_position;
+ }
return false;
- }
+ };
/**
diff --git a/dist/jquery.gridster.min.js b/dist/jquery.gridster.min.js
index 5824d31cb7..a48cf2ba84 100644
--- a/dist/jquery.gridster.min.js
+++ b/dist/jquery.gridster.min.js
@@ -1,4 +1,4 @@
/*! gridster.js - v0.1.0 - 2012-07-19
* https://github.com/ducksboard/gridster.js
* Copyright (c) 2012 ducksboard; Licensed MIT, GPL */
-(function(a,b,c,d){function e(b){return b[0]&&a.isPlainObject(b[0])?this.data=b[0]:this.el=b,this.isCoords=!0,this.coords={},this.init(),this}var f=e.prototype;f.init=function(){this.set(),this.original_coords=this.get()},f.set=function(){var a=this.el;a&&(this.data=a.offset(),this.data.width||(this.data.width=a.width()),this.data.height||(this.data.height=a.height()));var b=this.data;return this.coords.x1=b.left,this.coords.y1=b.top,this.coords.x2=b.left+b.width,this.coords.y2=b.top+b.height,this.coords.cx=b.left+b.width/2,this.coords.cy=b.top+b.height/2,this.coords.width=b.width,this.coords.height=b.height,this.coords.el=a||!1,this},f.update=function(b){if(!b&&!this.el)return this;if(b){var c=a.extend(this.data,b);this.data=c}return this.set(),this},f.get=function(){return this.coords},a.fn.coords=function(){if(this.data("coords"))return this.data("coords");var a=new e(this,arguments[0]);return this.data("coords",a),a}})(jQuery,window,document),function(a,b,c,d){function f(b,c,d){this.options=a.extend(e,d),this.$element=b,this.last_colliders=[],this.last_colliders_coords=[],typeof c=="string"||c instanceof jQuery?this.$colliders=a(c,this.options.colliders_context).not(this.$element):this.colliders=a(c),this.init()}var e={colliders_context:c.body,on_overlap:function(a){},on_overlap_start:function(a){},on_overlap_stop:function(a){}},g=f.prototype;g.init=function(){this.find_collisions()},g.overlaps=function(a,b){var c=!1,d=!1;if(b.x1>=a.x1&&b.x1<=a.x2||b.x2>=a.x1&&b.x2<=a.x2||a.x1>=b.x1&&a.x2<=b.x2)c=!0;if(b.y1>=a.y1&&b.y1<=a.y2||b.y2>=a.y1&&b.y2<=a.y2||a.y1>=b.y1&&a.y2<=b.y2)d=!0;return c&&d},g.detect_overlapping_region=function(a,b){var c="",d="";return a.y1>b.cy&&a.y1src/jquery.gridster.js:1871
+ src/jquery.gridster.js:1870
src/jquery.gridster.js:335
+ src/jquery.gridster.js:334
@@ -1175,7 +1175,7 @@
- src/jquery.gridster.js:141
+ src/jquery.gridster.js:140
@@ -1310,7 +1310,7 @@
- src/jquery.gridster.js:967
+ src/jquery.gridster.js:966
@@ -1428,7 +1428,7 @@
- src/jquery.gridster.js:1374
+ src/jquery.gridster.js:1373
@@ -1565,7 +1565,7 @@ upper row possible.
- src/jquery.gridster.js:1016
+ src/jquery.gridster.js:1015
@@ -1683,7 +1683,7 @@ upper row possible.
- src/jquery.gridster.js:1546
+ src/jquery.gridster.js:1545
@@ -1810,7 +1810,7 @@ into account the dimensions (size_y
and size_x
attrs.
- src/jquery.gridster.js:357
+ src/jquery.gridster.js:356
@@ -1881,7 +1881,7 @@ into account the dimensions (size_y
and size_x
attrs.
- src/jquery.gridster.js:1509
+ src/jquery.gridster.js:1508
@@ -1968,7 +1968,7 @@ into account the dimensions (size_y
and size_x
attrs.
- src/jquery.gridster.js:1644
+ src/jquery.gridster.js:1643
@@ -2096,7 +2096,7 @@ each one.
- src/jquery.gridster.js:1665
+ src/jquery.gridster.js:1664
@@ -2224,7 +2224,7 @@ each one.
- src/jquery.gridster.js:1684
+ src/jquery.gridster.js:1683
@@ -2357,7 +2357,7 @@ each one.
- src/jquery.gridster.js:1750
+ src/jquery.gridster.js:1749
@@ -2504,7 +2504,7 @@ iteration. The value of this
inside the function is the jQuery wrap
- src/jquery.gridster.js:1766
+ src/jquery.gridster.js:1765
@@ -2645,7 +2645,7 @@ iteration. The value of this
inside the function is the jQuery wrap
- src/jquery.gridster.js:1894
+ src/jquery.gridster.js:1893
@@ -2755,7 +2755,7 @@ detect row or column that we want to go.
- src/jquery.gridster.js:1968
+ src/jquery.gridster.js:1967
@@ -2843,7 +2843,7 @@ detect row or column that we want to go.
- src/jquery.gridster.js:1827
+ src/jquery.gridster.js:1826
@@ -2962,7 +2962,7 @@ detect row or column that we want to go.
- src/jquery.gridster.js:1616
+ src/jquery.gridster.js:1615
@@ -3056,7 +3056,7 @@ detect row or column that we want to go.
- src/jquery.gridster.js:1782
+ src/jquery.gridster.js:1781
@@ -3137,7 +3137,7 @@ detect row or column that we want to go.
- src/jquery.gridster.js:1581
+ src/jquery.gridster.js:1580
@@ -3242,7 +3242,7 @@ detect row or column that we want to go.
- src/jquery.gridster.js:1599
+ src/jquery.gridster.js:1598
@@ -3359,7 +3359,7 @@ detect row or column that we want to go.
- src/jquery.gridster.js:1067
+ src/jquery.gridster.js:1066
@@ -3487,7 +3487,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:1954
+ src/jquery.gridster.js:1953
@@ -3558,7 +3558,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:1145
+ src/jquery.gridster.js:1144
@@ -3629,7 +3629,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:903
+ src/jquery.gridster.js:902
@@ -3716,7 +3716,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:822
+ src/jquery.gridster.js:821
@@ -3841,7 +3841,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:841
+ src/jquery.gridster.js:840
@@ -3966,7 +3966,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:796
+ src/jquery.gridster.js:795
@@ -4085,7 +4085,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:810
+ src/jquery.gridster.js:809
@@ -4195,7 +4195,7 @@ theupperrowsarray. Iteration starts from row specified in
src/jquery.gridster.js:764
+ src/jquery.gridster.js:763
@@ -4323,7 +4323,7 @@ HTMLElements.
- src/jquery.gridster.js:781
+ src/jquery.gridster.js:780
@@ -4449,7 +4449,7 @@ and col given.
- src/jquery.gridster.js:861
+ src/jquery.gridster.js:860
@@ -4575,7 +4575,7 @@ else returns the jQuery HTMLElement
- src/jquery.gridster.js:886
+ src/jquery.gridster.js:885
@@ -4707,7 +4707,7 @@ params and if this is under the widget that is being dragged.
- src/jquery.gridster.js:718
+ src/jquery.gridster.js:717
@@ -4849,7 +4849,7 @@ each widget) in descending way.
- src/jquery.gridster.js:1329
+ src/jquery.gridster.js:1328
@@ -4968,7 +4968,7 @@ each widget) in descending way.
- src/jquery.gridster.js:1240
+ src/jquery.gridster.js:1239
@@ -5080,7 +5080,7 @@ if they can.
- src/jquery.gridster.js:1283
+ src/jquery.gridster.js:1282
@@ -5206,7 +5206,7 @@ if they can.
- src/jquery.gridster.js:172
+ src/jquery.gridster.js:171
@@ -5328,7 +5328,7 @@ if they can.
- src/jquery.gridster.js:437
+ src/jquery.gridster.js:436
@@ -5441,7 +5441,7 @@ if they can.
- src/jquery.gridster.js:514
+ src/jquery.gridster.js:513
@@ -5569,7 +5569,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:554
+ src/jquery.gridster.js:553
@@ -5693,7 +5693,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:388
+ src/jquery.gridster.js:387
@@ -5800,7 +5800,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:1178
+ src/jquery.gridster.js:1177
@@ -5904,7 +5904,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:1190
+ src/jquery.gridster.js:1189
@@ -6010,7 +6010,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:463
+ src/jquery.gridster.js:462
@@ -6117,7 +6117,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:1202
+ src/jquery.gridster.js:1201
@@ -6221,7 +6221,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:1220
+ src/jquery.gridster.js:1219
@@ -6315,7 +6315,7 @@ overlapped or stops being overlapped.
- src/jquery.gridster.js:1930
+ src/jquery.gridster.js:1929
@@ -6387,7 +6387,7 @@ the browser is resized.
- src/jquery.gridster.js:273
+ src/jquery.gridster.js:272
@@ -6469,7 +6469,7 @@ mapped array of positions.
- src/jquery.gridster.js:322
+ src/jquery.gridster.js:321
@@ -6574,7 +6574,7 @@ mapped array of positions.
- src/jquery.gridster.js:213
+ src/jquery.gridster.js:212
@@ -6678,7 +6678,7 @@ mapped array of positions.
- src/jquery.gridster.js:239
+ src/jquery.gridster.js:238
@@ -6776,7 +6776,7 @@ mapped array of positions.
- src/jquery.gridster.js:261
+ src/jquery.gridster.js:260
@@ -6864,7 +6864,7 @@ mapped array of positions.
- src/jquery.gridster.js:1492
+ src/jquery.gridster.js:1491
@@ -6973,7 +6973,7 @@ mapped array of positions.
- src/jquery.gridster.js:1814
+ src/jquery.gridster.js:1813
@@ -7060,7 +7060,7 @@ mapped array of positions.
- src/jquery.gridster.js:925
+ src/jquery.gridster.js:924
@@ -7187,7 +7187,7 @@ mapped array of positions.
- src/jquery.gridster.js:590
+ src/jquery.gridster.js:589
@@ -7308,7 +7308,7 @@ mapped array of positions.
- src/jquery.gridster.js:679
+ src/jquery.gridster.js:678
@@ -7413,7 +7413,7 @@ each widget) in ascending way.
- src/jquery.gridster.js:699
+ src/jquery.gridster.js:698
@@ -7524,7 +7524,7 @@ each widget) in descending way.
- src/jquery.gridster.js:301
+ src/jquery.gridster.js:300
@@ -7647,7 +7647,7 @@ the grid coords object passed in the grid_data
param.
- src/jquery.gridster.js:1463
+ src/jquery.gridster.js:1462
@@ -7751,7 +7751,7 @@ the grid coords object passed in the grid_data
param.
- src/jquery.gridster.js:643
+ src/jquery.gridster.js:642
diff --git a/docs/data.json b/docs/data.json
index bcbfc4e14d..195c57a47a 100644
--- a/docs/data.json
+++ b/docs/data.json
@@ -215,7 +215,7 @@
"classitems": [
{
"file": "src/jquery.gridster.js",
- "line": 141,
+ "line": 140,
"description": "Add a new widget to the grid.",
"itemtype": "method",
"name": "add_widget",
@@ -244,7 +244,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 172,
+ "line": 171,
"description": "Get the most left column below to add a new widget.",
"itemtype": "method",
"name": "next_position",
@@ -268,7 +268,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 213,
+ "line": 212,
"description": "Remove a widget from the grid.",
"itemtype": "method",
"name": "remove_widget",
@@ -287,7 +287,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 239,
+ "line": 238,
"description": "Returns a serialized array of the widgets in the grid.",
"itemtype": "method",
"name": "serialize",
@@ -307,7 +307,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 261,
+ "line": 260,
"description": "Returns a serialized array of the widgets that have changed their position.",
"itemtype": "method",
"name": "serialize_changed",
@@ -319,7 +319,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 273,
+ "line": 272,
"description": "Creates the grid coords object representing the widget a add it to the\nmapped array of positions.",
"itemtype": "method",
"name": "register_widget",
@@ -331,7 +331,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 301,
+ "line": 300,
"description": "Update in the mapped array of positions the value of cells represented by\nthe grid coords object passed in the `grid_data` param.",
"params": [
{
@@ -355,7 +355,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 322,
+ "line": 321,
"description": "Remove a widget from the mapped array of positions.",
"itemtype": "method",
"name": "remove_from_gridmap",
@@ -374,7 +374,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 335,
+ "line": 334,
"description": "Add a widget to the mapped array of positions.",
"itemtype": "method",
"name": "add_to_gridmap",
@@ -398,7 +398,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 357,
+ "line": 356,
"description": "Make widgets draggable. It Wraps the jQuery UI Draggable Plugin.",
"itemtype": "method",
"name": "draggable",
@@ -410,7 +410,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 388,
+ "line": 387,
"description": "This function is executed when the player begins to be dragged.",
"itemtype": "method",
"name": "on_start_drag",
@@ -430,7 +430,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 437,
+ "line": 436,
"description": "This function is executed when the player is being dragged.",
"itemtype": "method",
"name": "on_drag",
@@ -450,7 +450,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 463,
+ "line": 462,
"description": "This function is executed when the player stops being dragged.",
"itemtype": "method",
"name": "on_stop_drag",
@@ -470,7 +470,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 514,
+ "line": 513,
"description": "Executes the callbacks passed as arguments when a column begins to be\noverlapped or stops being overlapped.",
"params": [
{
@@ -494,7 +494,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 554,
+ "line": 553,
"description": "Executes the callbacks passed as arguments when a row starts to be\noverlapped or stops being overlapped.",
"params": [
{
@@ -518,7 +518,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 590,
+ "line": 589,
"description": "Sets the current position of the player",
"params": [
{
@@ -542,7 +542,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 643,
+ "line": 642,
"description": "See which of the widgets in the $widgets param collection can go to\na upper row and which not.",
"itemtype": "method",
"name": "widgets_contraints",
@@ -561,7 +561,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 679,
+ "line": 678,
"description": "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) in ascending way.",
"itemtype": "method",
"name": "sort_by_row_asc",
@@ -580,7 +580,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 699,
+ "line": 698,
"description": "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) in descending way.",
"itemtype": "method",
"name": "sort_by_row_desc",
@@ -599,7 +599,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 718,
+ "line": 717,
"description": "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) in descending way.",
"itemtype": "method",
"name": "manage_movements",
@@ -628,7 +628,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 764,
+ "line": 763,
"description": "Determines if there is a widget in the row and col given. Or if the\nHTMLElement passed as first argument is the player.",
"itemtype": "method",
"name": "is_player",
@@ -653,7 +653,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 781,
+ "line": 780,
"description": "Determines if the widget that is being dragged is currently over the row\nand col given.",
"itemtype": "method",
"name": "is_player_in",
@@ -677,7 +677,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 796,
+ "line": 795,
"description": "Determines if the placeholder is currently over the row and col given.",
"itemtype": "method",
"name": "is_placeholder_in",
@@ -701,7 +701,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 810,
+ "line": 809,
"description": "Determines if the placeholder is currently over the column given.",
"itemtype": "method",
"name": "is_placeholder_in_col",
@@ -720,7 +720,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 822,
+ "line": 821,
"description": "Determines if the cell represented by col and row params is empty.",
"itemtype": "method",
"name": "is_empty",
@@ -744,7 +744,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 841,
+ "line": 840,
"description": "Determines if the cell represented by col and row params is occupied.",
"itemtype": "method",
"name": "is_occupied",
@@ -768,7 +768,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 861,
+ "line": 860,
"description": "Determines if there is a widget in the cell represented by col/row params.",
"itemtype": "method",
"name": "is_widget",
@@ -792,7 +792,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 886,
+ "line": 885,
"description": "Determines if there is a widget in the cell represented by col/row\nparams and if this is under the widget that is being dragged.",
"itemtype": "method",
"name": "is_widget_under_player",
@@ -816,7 +816,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 903,
+ "line": 902,
"description": "Get widgets overlapping with the player.",
"itemtype": "method",
"name": "get_widgets_under_player",
@@ -828,7 +828,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 925,
+ "line": 924,
"description": "Put placeholder at the row and column specified.",
"itemtype": "method",
"name": "set_placeholder",
@@ -852,7 +852,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 967,
+ "line": 966,
"description": "Determines whether the player can move to a position above.",
"itemtype": "method",
"name": "can_go_player_up",
@@ -871,7 +871,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1016,
+ "line": 1015,
"description": "Determines whether a widget can move to a position above.",
"itemtype": "method",
"name": "can_go_widget_up",
@@ -890,7 +890,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1067,
+ "line": 1066,
"description": "Search a valid row for the widget represented by `widget_grid_data' in\nthe `upper_rows` array. Iteration starts from row specified in `min_row`.",
"itemtype": "method",
"name": "get_valid_rows",
@@ -919,7 +919,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1145,
+ "line": 1144,
"description": "Get widgets overlapping with the player.",
"itemtype": "method",
"name": "get_widgets_overlapped",
@@ -931,7 +931,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1178,
+ "line": 1177,
"description": "This callback is executed when the player begins to collide with a column.",
"itemtype": "method",
"name": "on_start_overlapping_column",
@@ -950,7 +950,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1190,
+ "line": 1189,
"description": "A callback executed when the player begins to collide with a row.",
"itemtype": "method",
"name": "on_start_overlapping_row",
@@ -969,7 +969,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1202,
+ "line": 1201,
"description": "A callback executed when the the player ends to collide with a column.",
"itemtype": "method",
"name": "on_stop_overlapping_column",
@@ -988,7 +988,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1220,
+ "line": 1219,
"description": "This callback is executed when the player ends to collide with a row.",
"itemtype": "method",
"name": "on_stop_overlapping_row",
@@ -1007,7 +1007,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1240,
+ "line": 1239,
"description": "Move a widget to a specific row. The cell or cells must be empty.\nIf the widget has widgets below, all of these widgets will be moved also\nif they can.",
"itemtype": "method",
"name": "move_widget_to",
@@ -1026,7 +1026,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1283,
+ "line": 1282,
"description": "Move up the specified widget and all below it.",
"itemtype": "method",
"name": "move_widget_up",
@@ -1051,7 +1051,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1329,
+ "line": 1328,
"description": "Move down the specified widget and all below it.",
"itemtype": "method",
"name": "move_widget_down",
@@ -1075,7 +1075,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1374,
+ "line": 1373,
"description": "Check if the widget can move to the specified row, else returns the\nupper row possible.",
"itemtype": "method",
"name": "can_go_up_to_row",
@@ -1104,7 +1104,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1463,
+ "line": 1462,
"description": "Get widgets below a widget.",
"itemtype": "method",
"name": "widgets_below",
@@ -1123,7 +1123,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1492,
+ "line": 1491,
"description": "Update the array of mapped positions with the new player position.",
"itemtype": "method",
"name": "set_cells_player_occupies",
@@ -1147,7 +1147,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1509,
+ "line": 1508,
"description": "Remove from the array of mapped positions the reference to the player.",
"itemtype": "method",
"name": "empty_cells_player_occupies",
@@ -1159,7 +1159,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1546,
+ "line": 1545,
"description": "Check if it's possible to move a widget to a specific col/row. It takes\ninto account the dimensions (`size_y` and `size_x` attrs. of the grid coords\n object) the widget occupies.",
"itemtype": "method",
"name": "can_move_to",
@@ -1188,7 +1188,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1581,
+ "line": 1580,
"description": "Given the leftmost column returns all columns that are overlapping with the player.",
"itemtype": "method",
"name": "get_targeted_columns",
@@ -1208,7 +1208,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1599,
+ "line": 1598,
"description": "Given the upper row returns all rows that are overlapping with the player.",
"itemtype": "method",
"name": "get_targeted_rows",
@@ -1228,7 +1228,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1616,
+ "line": 1615,
"description": "Get all columns and rows that a widget occupies.",
"itemtype": "method",
"name": "get_cells_occupied",
@@ -1247,7 +1247,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1644,
+ "line": 1643,
"description": "Iterate over the cells occupied by a widget executing a function for\neach one.",
"itemtype": "method",
"name": "for_each_cell_occupied",
@@ -1271,7 +1271,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1665,
+ "line": 1664,
"description": "Iterate over the columns occupied by a widget executing a function for\neach one.",
"itemtype": "method",
"name": "for_each_column_occupied",
@@ -1295,7 +1295,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1684,
+ "line": 1683,
"description": "Iterate over the rows occupied by a widget executing a function for\neach one.",
"itemtype": "method",
"name": "for_each_row_occupied",
@@ -1319,7 +1319,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1750,
+ "line": 1749,
"description": "Iterate over each widget above the column and row specified.",
"itemtype": "method",
"name": "for_each_widget_above",
@@ -1348,7 +1348,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1766,
+ "line": 1765,
"description": "Iterate over each widget below the column and row specified.",
"itemtype": "method",
"name": "for_each_widget_below",
@@ -1377,7 +1377,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1782,
+ "line": 1781,
"description": "Returns the highest occupied cell in the grid.",
"itemtype": "method",
"name": "get_highest_occupied_cell",
@@ -1389,7 +1389,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1814,
+ "line": 1813,
"description": "Set the current height of the parent grid.",
"itemtype": "method",
"name": "set_dom_grid_height",
@@ -1401,7 +1401,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1827,
+ "line": 1826,
"description": "It generates the neccessary styles to position the widgets.",
"itemtype": "method",
"name": "generate_stylesheet",
@@ -1425,7 +1425,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1871,
+ "line": 1870,
"description": "Injects the given CSS as string to the head of the document.",
"itemtype": "method",
"name": "add_style_tag",
@@ -1444,7 +1444,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1894,
+ "line": 1893,
"description": "Generates a faux grid to collide with it when a widget is dragged and\ndetect row or column that we want to go.",
"itemtype": "method",
"name": "generate_faux_grid",
@@ -1468,7 +1468,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1930,
+ "line": 1929,
"description": "Recalculates the offsets for the faux grid. You need to use it when\nthe browser is resized.",
"itemtype": "method",
"name": "recalculate_faux_grid",
@@ -1480,7 +1480,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1954,
+ "line": 1953,
"description": "Get all widgets in the DOM and register them.",
"itemtype": "method",
"name": "get_widgets_from_DOM",
@@ -1492,7 +1492,7 @@
},
{
"file": "src/jquery.gridster.js",
- "line": 1968,
+ "line": 1967,
"description": "Calculate columns and rows to be set based on the configuration\n parameters, grid dimensions, etc ...",
"itemtype": "method",
"name": "generate_grid_and_stylesheet",
diff --git a/docs/files/src_jquery.gridster.js.html b/docs/files/src_jquery.gridster.js.html
index f97e074b82..0bad5b08f6 100644
--- a/docs/files/src_jquery.gridster.js.html
+++ b/docs/files/src_jquery.gridster.js.html
@@ -224,7 +224,6 @@
this.set_dom_grid_height();
this.$wrapper.addClass('ready');
this.draggable();
- this.next_position(2, 2);
$(window).bind(
'resize', throttle($.proxy(this.recalculate_faux_grid, this), 200));
@@ -296,8 +295,8 @@
}
if (valid_pos.length) {
- this.next_position = this.sort_by_row_asc(valid_pos)[0];
- return this.next_position;
+ var next_position = this.sort_by_row_asc(valid_pos)[0];
+ return next_position;
}
return false;
};