Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Nov 18th, 2009 | Syntax: None | Size: 0.79 KB | Hits: 225 | Expires: Never
Copy text to clipboard
  1. # Animal/type.properties
  2. _db        = zoo
  3. _table     = T_ANIMAL
  4. _id        = ANI_ID
  5. #tells Helma where to store the prototype's name
  6. _prototype = ANI_PROTOTYPE
  7. # An animal has a name and a birthday
  8. _name     = ANI_NAME
  9. birthday  = ANI_BIRTHDAY
  10.  
  11. # Dog/type.properties
  12. _db        = zoo
  13. _table     = T_ANIMAL
  14. _id        = ANI_ID
  15.  
  16. # tells Helma where to store the prototype's name
  17. _prototype = ANI_PROTOTYPE
  18.  
  19. # A dog is an animal
  20. _extends   = Animal
  21. _extensionId = dogu dugu
  22.  
  23. # Dogs have an additional breed and color
  24. breed     = DOG_BREED
  25. color     = DOG_COLOR
  26.  
  27.  
  28. /********* Dog.js ***********/
  29. Dog.prototype.__defineSetter__("name", function(name) {
  30.    this._name = name + " (setter)";
  31. });
  32.  
  33. Dog.prototype.__defineGetter__("name", function(name) {
  34.    return this._name;
  35. });