Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 21st, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var Store = {}
  2.  
  3. Store.Item = function() {
  4. }
  5.  
  6. Store.Item.prototype = {
  7.   getValues:function() {
  8.     return { defaultValues };
  9.   }
  10. }
  11.  
  12. Store.Order = {};
  13.  
  14. Store.Order.Item = function() {
  15. }
  16. Store.Order.Item.prototype = new Store.Item;
  17. Store.Order.Item.prototype.getValues = function() {
  18.    var parent = Object.getPrototypeOf(this);
  19.    var values = parent.getValues.call(this);
  20.    values.extraValue = 'asdfa';
  21. }