lib/gridupdater.js
/**
 * @function appendRows
 * @param {int} y Index of row being modified
 * @param {int} newNumCols New number of cols set
 * @param {int} currentNumCols Current number of cols (may have changed since script initiated)
 */
@function appendRows
@param {int} y Index of row being modified
@param {int} newNumCols New number of cols set
@param {int} currentNumCols Current number of cols (may have changed since script initiated)
@function appendRows @param { int } y Index of row being modified @param { int } newNumCols New number of cols set @param { int } currentNumCols Current number of cols ( may have changed since script initiated )
function appendCols(y, newNumCols, currentNumCols) {
   for(var x=currentNumCols+1; x<=newNumCols; x++){
         $$('workRow'+y).addView({id:"viewer"+x+","+(y), view:'iframe', src:'3Dmol frame.html',
                                    minWidth:250, minHeight:250,
                                    on:{'onAfterLoad': setCoord_callback(x,y)}
         });
   }
}
function appendCols ( y , newNumCols , currentNumCols ) { for ( var x = currentNumCols + 1 ; x <= newNumCols ; x ++ ) { $$ ( 'workRow' + y ) . addView ( { id : "viewer" + x + "," + ( y ) , view : 'iframe' , src : '3Dmol frame.html' , minWidth : 250 , minHeight : 250 , on : { 'onAfterLoad' : setCoord_callback ( x , y ) } } ) ; } }
@function appendRows
 @param {int} y Index of row being modified
 @param {int} newNumCols New number of cols set
 @param {int} currentNumCols Current number of cols (may have changed since script initiated)
@function appendRows @param { int } y Index of row being modified @param { int } newNumCols New number of cols set @param { int } currentNumCols Current number of cols ( may have changed since script initiated )
//Goes through a single row and adds viewers as new columns //Start at +1 since you add on starting at the end of the row