Created
October 6, 2015 18:35
-
-
Save jabb0r/279aa272f5f1ea82d3fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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