Skip to content

Commit

Permalink
Merge pull request cubiq#1054 from LeoYuan/master
Browse files Browse the repository at this point in the history
fix a typo
  • Loading branch information
Gleb Mikheev authored Jun 27, 2016
2 parents 5f8675a + 3bb808c commit 59333b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ This is achieved by calling the `refresh` method with the right timing. Please f

Every time you touch the DOM the browser renderer repaints the page. Once this repaint has happened we can safely read the new DOM properties. The repaint phase is not instantaneous and it happens only at the end of the scope that triggered it. That's why we need to give the renderer a little rest before refreshing the iScroll.

To ensure that javascript gets the updated properties you should defer the refreh with something like this:
To ensure that javascript gets the updated properties you should defer the refresh with something like this:

```js
ajax('page.php', onCompletion);
Expand Down

0 comments on commit 59333b0

Please sign in to comment.