Comment Comment by snappy173 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; //} } } } parent snappy173 9 years ago