Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
balibell committed Oct 18, 2015
1 parent 0f2c40e commit 29a6261
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions js/woo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1066,13 +1066,11 @@
$dom = MASN[IDX].$dom,
domtp = $dom.position().top;

var toBeDel = [],
toBeAdd = [];
masn.exRecycleInvisibleUnits(toBeDel, toBeAdd, tp, domtp, 1,4,-1);
masn.exRecycleInvisibleUnits(toBeDel, toBeAdd, tp, domtp, 0,3,1);

masn.exRecycleInvisibleUnits(tp, domtp, 1,4,-1);
masn.exRecycleInvisibleUnits(tp, domtp, 0,3,1);

var visibleIdx = Woo.getVisibleIdx(masn);

var indom = [];
$dom.children().each(function(i,e){
var $t = $(e),
Expand Down Expand Up @@ -1152,8 +1150,8 @@
rangeb = masn.columnVisibleRange[1][i];

for ( var j=ranget; j<=rangeb;) {
visibleunits.push(j);
if ( masn.posCoordination[""+j] ) {
visibleunits.push(j);
var nx = masn.posCoordination[""+j][4];

if( j!=nx ){
Expand Down Expand Up @@ -1953,7 +1951,7 @@
return isVisible;
},

exRecycleInvisibleUnits : function(toBeDel, toBeAdd, wt, domtp, rangeNum, posNum, isvNum){
exRecycleInvisibleUnits : function(wt, domtp, rangeNum, posNum, isvNum){
var masn = this,
$dom = masn.$dom,
startPos = 0,
Expand Down Expand Up @@ -1983,15 +1981,14 @@
break;
}

// posInfo[5] indicate the visible status of this unit, do nothing if it's already been visible
if( isv === 0 && !posInfo[5] ){
// masn.unitCache[""+startPos] && masn.unitCache[""+startPos].css("background","white")
// masn.unitCache[""+startPos] && masn.unitCache[""+startPos].appendTo(masn.$dom);
toBeAdd.push(startPos);
// // posInfo[5] indicate the visible status of this unit, do nothing if it's already been visible
// if( isv === 0 && !posInfo[5] ){
// // masn.unitCache[""+startPos] && masn.unitCache[""+startPos].css("background","white")
// // masn.unitCache[""+startPos] && masn.unitCache[""+startPos].appendTo(masn.$dom);

// change visible status in posCoordination
posInfo[5] = 1;
}
// // change visible status in posCoordination
// posInfo[5] = 1;
// }


masn.columnVisibleRange[1 & rangeNum][i] = startPos;
Expand All @@ -2018,15 +2015,13 @@
}


// posInfo[5] indicate the visible status of this unit, do nothing if it's already been invisible
if( posInfo[5] ){
// masn.unitCache[""+endPos] && masn.unitCache[""+endPos].remove();
// masn.unitCache[""+endPos] && masn.unitCache[""+endPos].css("background","red")
toBeDel.push(endPos);

// change visible status in posCoordination
posInfo[5] = 0;
}
// // posInfo[5] indicate the visible status of this unit, do nothing if it's already been invisible
// if( posInfo[5] ){
// // masn.unitCache[""+endPos] && masn.unitCache[""+endPos].remove();
// // masn.unitCache[""+endPos] && masn.unitCache[""+endPos].css("background","red")
// // change visible status in posCoordination
// posInfo[5] = 0;
// }


if( posInfo[posNum] == -1 ){
Expand Down

0 comments on commit 29a6261

Please sign in to comment.