diff --git a/js/simpleStore.js b/js/simpleStore.js index 3a293a7..c1ff5fb 100644 --- a/js/simpleStore.js +++ b/js/simpleStore.js @@ -261,7 +261,7 @@ var simpleStore = { // Checks to make sure file exists $.get(s.JSONFile) - .success(function () { + .done(function () { // Get product data from JSON file $.getJSON(s.JSONFile, function (data) { simpleStore.setProducts(data.products); @@ -306,7 +306,7 @@ var simpleStore = { if (s.mode === "JSON") { $.get(s.JSONFile) - .success(function () { + .done(function () { $.getJSON(s.JSONFile, function (data) { var JSONData = data.products; if (simpleStore.verifyCheckoutData(checkoutData, JSONData, true)) {