pull/56/head
Glen Cheney 11 years ago
parent 61e597a4d6
commit 5c1a473c26

@ -12,7 +12,7 @@
</ul>
<h3>Get notified when shuffle is done with setup</h3>
<p>To receive the <code>loading</code> and <code>done</code> events, you must subscribe to them before intializing the plugin, otherwise they will fire before you have subscribed to them</p>
<p>To receive the <code>loading</code> and <code>done</code> events, you must subscribe to them before initializing the plugin, otherwise they will fire before you have subscribed to them</p>
<pre rel="JavaScript"><code class="language-javascript">$grid.on('done.shuffle', function() {
console.log('Finished initializing shuffle!');
});

@ -16,7 +16,7 @@ var DEMO = (function( $ ) {
}, 100);
// You can subscribe to custom events. To receive the loading and done events,
// you must subscribe to them before intializing the plugin, otherwise they will
// you must subscribe to them before initializing the plugin, otherwise they will
// fire before you have subscribed to them
// shrink, shrunk, filter, filtered, sorted, load, done
$grid.on('loading.shuffle done.shuffle shrink.shuffle shrunk.shuffle filter.shuffle filtered.shuffle sorted.shuffle layout.shuffle', function(evt, shuffle) {

Loading…
Cancel
Save