I wrote a method that is supposed to execute a callback, but the callback isnt being executed:
buildTable('lt', 'viewltDetails', commonTireColumns, function(error) {
if(error) {
console.log(error);
} else {
console.log('calculating');
calculatedPricing();
}
});
The buildTable function works fine, but it's not executing the console.log('calculating') and calculatePricing() commands, although the function isn't throwing any errors.
My calculatePricing function looks like:
calculatedPricing: function() {
var price = 300;
return price;
};
Can someone help? Thanks!!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire