Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Environment display doesn't update for changes to nested objects/arrays #157

Open
dchalmers opened this issue Dec 4, 2016 · 0 comments

Comments

@dchalmers
Copy link

dchalmers commented Dec 4, 2016

if I have an array (or another object) nested in an object, and I make a change to that array using the REPL, then the change does not appear in the Global Environment display UNLESS I collapse/expand the object using the triangle.

Sample code:

var myObj = {
  arr: [1,2,3],
  fn: function (val) { this.arr.push(val) }
}

var arr2 = [1,2,3]

myObj.fn(4) // does not update the display in global environment unless you collapse/expand the surrounding object
arr2.push(4) // updates immediately in global environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant