Guest User

Untitled

a guest
May 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. var BidForm = (function() {
  2. var _instance = null;
  3. var klass = Class.create(Bid, {
  4. initialize: function(options) {
  5. if (_instance) return null;
  6. // loaded an existing bid, must be instantiated first, because the
  7. // latter auction objects pass/pull data from the Bid singelton
  8. this.BidGroups = BidGroups.instance();
  9. this.BidQty = BidQty.instance();
  10. this.BidAmt = BidAmt.instance();
  11. // after groups, qty and amt are setup, run the bid status logic
  12. this.BidStatus = BidStatus.instance();
  13.  
  14. $('bidTickets_reset').observe('click', this.reset.bindAsEventListener(this));
  15. $('bidTickets_submit').observe('click', this.submit.bindAsEventListener(this));
  16. },
  17.  
  18. etc....
Add Comment
Please, Sign In to add comment