javascript - How can we get the hidden properties from an object? -


i have object, instance of 1 of models. want store belongs to, instance. when digging way store, found :

_data: object data: object dirty: true editing: false id: "ext-record-462" internalid: "ext-record-462" modified: object phantom: true raw: object stores: array[1] __proto__: object length: 1 

this console.log() of object, , can see stores variable, contains array of stores object linked :

stores: array[1]     0: class     length: 1     __proto__: array[0] 

i tried myobject.get('stores') , myobject.stores , both returned undefined. there way retrieve information, or forbidden framework ?

similarly, once store, object linked hasmany association. in console.log() of store, see :

boundto: class 

this field contains reference object has association. can't it. tried mystore.get('boundto') , mystore.boundto too, without success.

so question : there way these hidden properties ?

i'm dumb, forgot these objects before javascript objects. in case stumbles on this, i'll leave answer here :

you can access property of javascript (and therefore, models or sencha touch object) syntax : myobject['myproperty']

all have take @ object dev tool in browser, , note down property want get.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -