Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36874
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Object prop missing? |
| Date | 2019-06-13 09:37 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <12600445.cR47uQ6sgG@PointedEars.de> (permalink) |
| References | <p6KdnbVLAPPqcZzAnZ2dnUU7-QfNnZ2d@westnet.com.au> |
Andrew Poulos wrote:
> I've created a property and the console it tells me that it looks like
> this
>
> Object
> elem: div#opt1.opt
> h: 28
> id: "opt1"
> maxw: 548
> on: false
> pos: {x: 46}
> txt: p
> __proto__: Object
>
> yet when, right after, I try to get the value of op.h I get undefined
>
> console.log(op) //--> give the object above
> console.log(op.h) //--> undefined
>
> I don't understand how this could be happening.
Show the code used to create and query the object, i.e. the entire relevant
part of the console transcript, *verbatim*. And name the runtime
environment so that one can take at least a guess at the used ECMAScript
implementation.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Object prop missing? Andrew Poulos <ap_prog@hotmail.com> - 2019-06-13 16:25 +1000
Re: Object prop missing? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-06-13 09:37 +0200
Re: Object prop missing? Andrew Poulos <ap_prog@hotmail.com> - 2019-06-13 20:05 +1000
Re: Object prop missing? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-06-13 12:33 +0200
Re: Object prop missing? Andrew Poulos <ap_prog@hotmail.com> - 2019-06-13 20:53 +1000
Re: Object prop missing? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-06-13 13:09 +0200
Re: Object prop missing? Andrew Poulos <ap_prog@hotmail.com> - 2019-06-13 21:54 +1000
Re: Object prop missing? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-06-13 17:30 +0200
Re: Object prop missing? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-06-13 13:05 +0200
Re: Object prop missing? JJ <jj4public@vfemail.net> - 2019-06-13 15:41 +0700
csiph-web