Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #36870

Object prop missing?

Newsgroups comp.lang.javascript
From Andrew Poulos <ap_prog@hotmail.com>
Subject Object prop missing?
Date 2019-06-13 16:25 +1000
Message-ID <p6KdnbVLAPPqcZzAnZ2dnUU7-QfNnZ2d@westnet.com.au> (permalink)

Show all headers | View raw


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.

Andrew Poulos

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


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