- var Store = {}
- Store.Item = function() {
- }
- Store.Item.prototype = {
- getValues:function() {
- return { defaultValues };
- }
- }
- Store.Order = {};
- Store.Order.Item = function() {
- }
- Store.Order.Item.prototype = new Store.Item;
- Store.Order.Item.prototype.getValues = function() {
- var parent = Object.getPrototypeOf(this);
- var values = parent.getValues.call(this);
- values.extraValue = 'asdfa';
- }