3 ms·
addEventListener("beforeboarding", function() { if(booked > capacity) { let price = ticket.faceValue; let ticketsToBuy = booked - capacity;
by snappy173 9y ago
addEventListener("beforeboarding", function() {
if(booked > capacity) {
let price = ticket.faceValue;
let ticketsToBuy = booked - capacity;
while (ticketsToBuy > 0) {
if (offerToBuyBackTicket(price)) {
ticketsToBuy--;
} else {
price++;
}
//if (price > limit) {
// callInPinkertonThugs();
// return;
//}
}
}
}