Events

A list of events shuffle triggers:

Get notified when shuffle is done with setup

To receive the loading and done events, you must subscribe to them before initializing the plugin, otherwise they will fire before you have subscribed to them

$grid.on('done.shuffle', function() {
  console.log('Finished initializing shuffle!');
});

// Initialize shuffle
$grid.shuffle( options );

Do something when an item is removed

$grid.on('removed.shuffle', function( evt, $collection, shuffle ) {
  console.log( this, evt, $collection, shuffle );
});