Any ideas how to cancel a table mass action with JavaScript snippet?

I’m not a JavaScript guy, so I figured I should share with you the snippet I’m using to un-select . . . the problem could start there.

==================================

var table = skuid.$( ‘#LeadTable’ ),
   list,
   items;
if ( table.length ) {
   list = table.data( ‘object’ ).list;
   selectedItems = list.getSelectedItems();
   var i = 0;      
   for( i=0; i < selectedItems.length; i++ ) {
      var itemRow = selectedItems[i];
      itemRow.selected = false;
   }
   list.render({  
      doNotCache:true
   });
}