Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8622753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:07:49+00:00 2026-06-12T07:07:49+00:00

Am puzzled now, like really puzzled: got this javascript object: { x: 0, y:

  • 0

Am puzzled now, like really puzzled:

got this javascript object:

{
    x: 0,
    y: 0,
    w: 28,
    h: 25,
    itemid: "5FE6E709096C4B57999AABC3575AF5D8",
    moveable: true,
    type: "4",
    fontface: "",
    text: "ef00704dd40e4768a1b15c14af9b6c4b.png",
    fontsize: 0,
    color: "",
    opacity: "",
    align: 0
}​

if I do console.log(theaboveobject);
it outputs fine.

however if I do console.log(object.w) or console.log(object.h) I get 0 as the response
2 nights in a row this has done my head in now, whats going on, what am i missing?

    console.log(artworkLine); // this outputs fine as above
    console.log(artworkLine.w);  // says 0
    console.log(artworkLine.h);  // says 0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:07:50+00:00Added an answer on June 12, 2026 at 7:07 am

    It’s just a guess but personally I’ve experienced the similar things several times.

    It’s caused by how the browsers resolve reference to an object in console. It’s done in runtime in a moment of unfolding it by clicking on it. And it’s likely that on that moment the object is already filled with desired data.

    More details about that: http://felix-kling.de/blog/2011/08/18/inspecting-variables-in-javascript-consoles/

    If you try js debugger (i.e. the one built in chrome developer tools) and put a break to the line with console.log(object); – you would see the actual object values.

    The issue can be demonstrated very easily:

    1. Open http://jsfiddle.net/8jzvd/
    2. Open console
    3. Press jsfiddle Run button
    4. Wait until unfold label appears
    5. Click on Object (assuming you use google chrome browser)
    6. You see the object with foo property specified

    Now repeat the same, but on step 4 unfold the object before unfold label appears. And you’ll see that results from step 6 are different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This has puzzled me for two days now. I have a LinearLayout like the
I am really puzzled by this. I believe I am managing memory the correct
okay...im really puzzled with this. I want to create a regular asp.net webforms website
I'm reading the book Spring Recipes right now, and am puzzled by one thing:
I am puzzled why this return false doesn't cancel the post-back. function validate() {
I have expressions like this: (cat OR cats OR kitten OR kitty) AND (dog
Consider a factory bean. It takes a single property of type Map<String, Object> .
I'm turning to you folks for answers because this really blows my mind... Let
Like the title says, my code basically does this: set proxy, test proxy, do
this is probably something I should know, but I'm puzzled by this. I'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.