Skip to content

Instantly share code, notes, and snippets.

@brycehamrick
Last active December 12, 2015 00:38
Show Gist options
  • Save brycehamrick/4684768 to your computer and use it in GitHub Desktop.
Save brycehamrick/4684768 to your computer and use it in GitHub Desktop.
Backplane ready callback
(function() {
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2)
return;
/**
* Callback function to be executed on BP ready
*/
function bp_ready_callback() {
// Code to be executed on BP ready
}
// Pass in function from above
Backplane(bp_ready_callback);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment