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

Bugfix/webface/observechildren #111

Merged
merged 6 commits into from
Jul 11, 2019
Merged

Conversation

jackmcintosh
Copy link
Contributor

No description provided.

@jackmcintosh jackmcintosh self-assigned this Jul 10, 2019
@jackmcintosh jackmcintosh added the bug Something isn't working label Jul 10, 2019
@@ -170,8 +171,8 @@ export default class BaseWebFace extends BaseFace {
if (vatom.id === this.vatom.id && this.face) {
var resources = {}

for (var res in this.vatomView.vatom.resources) {
resources[res] = this.vatomView.vatom.resources[res].value.value
for (var res in this.vatomView.vatom.properties.resources) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is using in on an array, so it would end up with an object with keys 0, 1, 2 etc... Maybe something like this rather:

var resources = {}
for (var resource of this.vatomView.vatom.properties.resources)
  resources[resource.name] = resource.value.value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jackmcintosh jackmcintosh requested a review from jjv360 July 11, 2019 07:43
@jjv360 jjv360 merged commit a8e6eda into master Jul 11, 2019
@jjv360 jjv360 deleted the bugfix/webface/observechildren branch July 11, 2019 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants