Skip to content

Commit

Permalink
Bugfix: Update the code snippet with correct name
Browse files Browse the repository at this point in the history
Update the code snippet with the correct variable name
  • Loading branch information
abadri authored Jan 27, 2021
1 parent 01f54d3 commit 9c51aaf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions guides/release/applications/run-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ If we execute the following code without the run loop:

```javascript
let profilePhoto = Image.create({ width: 250, height: 500 });
user.set('width', 300);
profilePhoto.set('width', 300);
// {{width}} and {{aspectRatio}} are updated

user.set('height', 300);
profilePhoto.set('height', 300);
// {{height}} and {{aspectRatio}} are updated
```

Expand All @@ -104,10 +104,10 @@ the browser will only rerender the template once the attributes have all been se

```javascript
let profilePhoto = Image.create({ width: 250, height: 500 });
user.set('width', 600);
user.set('height', 600);
user.set('width', 300);
user.set('height', 300);
profilePhoto.set('width', 600);
profilePhoto.set('height', 600);
profilePhoto.set('width', 300);
profilePhoto.set('height', 300);
```

In the above example with the run loop, since the user's attributes end up at the same values as before execution,
Expand Down

0 comments on commit 9c51aaf

Please sign in to comment.