Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
optimalisatie committed Jul 7, 2019
1 parent d16613c commit e5b762c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -183,7 +183,7 @@ window.$lazypoly = function() {
};
```

When using `$async` you can alternatively use `window.$lazypoly` with a string or a object to pass to `$async` which could load anything.
When using `$async` you can alternatively use `window.$lazypoly` with a string or a object to pass to `$async.js` which could load anything.

Alternatively, when including `$lazy` inline, the `data-poly` attribute enables to define a string to pass to `$async`.

Expand Down
2 changes: 1 addition & 1 deletion dist/lazy+polyfill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lazy-data-attr+polyfill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lazy-async-polyfill.js
Expand Up @@ -32,7 +32,7 @@ if (!intersectionObserver) {

// enable custom promise/callback
// @example window.$lazypoly = function() { return { then: function(callback) { /* ... */ } } };
((typeof POLYFILL !== 'string' && "then" in POLYFILL) ? POLYFILL : $async(POLYFILL)).then(function() {
((typeof POLYFILL !== 'string' && "then" in POLYFILL) ? POLYFILL : $async.js(POLYFILL)).then(function() {

// restore lazy handler
win.$lazy = $lazy;
Expand Down

0 comments on commit e5b762c

Please sign in to comment.