Opened 7 years ago

Closed 3 years ago

#15102 closed defect (patchwelcome)

Inheritance not working if base object is made of delegates and constructor manual mode

Reported by: unludo Owned by: Eugene Lazutkin
Priority: undecided Milestone: 1.13
Component: Data Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

I try to create a cache store object which hold a jsonrest and a memory store, using manual constructor chaining.

When I do this, I have no access to the base object methods.

Here is the code I am using to instanciate the object attached as a file.

var userStore2 = new app.UserStore();
userStore2.query({name:"unludo", password:"vasy"}); 

Attachments (2)

UserStore.js (718 bytes) - added by unludo 7 years ago.
UserStoreBis.js (865 bytes) - added by unludo 7 years ago.
Simpler version does not work either

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by unludo

Attachment: UserStore.js added

Changed 7 years ago by unludo

Attachment: UserStoreBis.js added

Simpler version does not work either

comment:1 Changed 7 years ago by Eugene Lazutkin

Description: modified (diff)
Owner: set to Eugene Lazutkin
Status: newassigned

comment:2 Changed 3 years ago by dylan

Component: CoreData
Milestone: tbd1.12
Resolution: patchwelcome
Status: assignedclosed

At this point I would suggest trying dstore instead ( http://dstorejs.io/ ) as the way Cache works as a wrapper is likely blocking the desired behavior and this won't be an issue with dstore. Closing as patchwelcome.

Note: See TracTickets for help on using tickets.