lib/gridupdater.js
/**
 * @function deleteCols
 * @param {int} newNumCols New number of cols set
 * @param {int} origNumCols Number of cols before resize
 */
@function deleteCols
@param {int} newNumCols New number of cols set
@param {int} origNumCols Number of cols before resize
@function deleteCols @param { int } newNumCols New number of cols set @param { int } origNumCols Number of cols before resize
function deleteCols(newNumCols, origNumCols){
   var numRows = $$('workLayout').getChildViews().length;
   for(var y=numRows; y>0; y--){
      for(var x=origNumCols; x>newNumCols; x--){ 
         $$('workRow'+y).removeView('viewer'+x+','+y);
      }
   }
}
function deleteCols ( newNumCols , origNumCols ) { var numRows = $$ ( 'workLayout' ) . getChildViews ( ) . length ; for ( var y = numRows ; y > 0 ; y -- ) { for ( var x = origNumCols ; x > newNumCols ; x -- ) { $$ ( 'workRow' + y ) . removeView ( 'viewer' + x + ',' + y ) ; } } }
@function deleteCols
 @param {int} newNumCols New number of cols set
 @param {int} origNumCols Number of cols before resize
@function deleteCols @param { int } newNumCols New number of cols set @param { int } origNumCols Number of cols before resize
//Delete in EVERY row //Delete at ends on the right