Skip to content

Instantly share code, notes, and snippets.

@jabb0r
Created October 6, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabb0r/279aa272f5f1ea82d3fb to your computer and use it in GitHub Desktop.
Save jabb0r/279aa272f5f1ea82d3fb to your computer and use it in GitHub Desktop.
var callbacks = {
addToCart: function(product) {
alert('Adding ' + product + ' to cart!');
},
getProductPrice: function(product) {
var price = 'N/A';
switch(product) {
case 'FLOATY_BACKDOOR':
price = '$12.00';
break;
}
},
isBundleInCart: function() {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment