Skip to content

Commit

Permalink
Renamed variable float as its reserved in older JS implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Kuebler committed Nov 17, 2012
1 parent 63c3406 commit 646d954
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/GridLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Responsible for laying out the panels in flexible tiled boxes
*/

function GridLayout( container, float, dock, animationTime ){
function GridLayout( container, floatLayer, dock, animationTime ){
var grid = {},
layout = this;

Expand Down Expand Up @@ -262,7 +262,7 @@ function GridLayout( container, float, dock, animationTime ){

/* LAYOUT */

float.style.display = 'none';
floatLayer.style.display = 'none';

layout.minimizePanel = function(panel){
// detach the panel
Expand Down Expand Up @@ -327,8 +327,8 @@ function GridLayout( container, float, dock, animationTime ){
style.width = w+'px';
style.height = h+'px';
// attach the panel to the floating layer
float.style.display = '';
float.appendChild(panel);
floatLayer.style.display = '';
floatLayer.appendChild(panel);
// add floating styles
panel.className = 'panel drag';
};
Expand All @@ -351,8 +351,8 @@ function GridLayout( container, float, dock, animationTime ){
var cell = grid.insertCellAt(x,y);
grid.updateResizeGrips();
// detach the panel from the floating layer
float.removeChild(panel);
float.style.display = 'none';
floatLayer.removeChild(panel);
floatLayer.style.display = 'none';
// reset the panel geometry
var style = panel.style;
style.left = '0';
Expand Down

0 comments on commit 646d954

Please sign in to comment.