Skip to content

Commit

Permalink
Merge pull request #788 from bordeo/master
Browse files Browse the repository at this point in the history
Correct AMD define for plugins
  • Loading branch information
aFarkas authored May 25, 2020
2 parents eee2d40 + 6652d3a commit 83f8871
Show file tree
Hide file tree
Showing 48 changed files with 51 additions and 47 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ lazySizes.init();

## Contributing
Fixes, PRs and issues are always welcome, make sure to create a new branch from the **master** (not the gh-pages branch), validate against JSHint and test in all browsers. In case of an API/documentation change make sure to also document it here in the readme.md.
### Build
Run `npx grunt` to validate JSHint and uglify/minify all files.
### Tests
Run `npx serverino -p 3333` and navigate to [http://localhost:3333/tests/](http://localhost:3333/tests/)

## <a name="plugins"></a>Available plugins in this repo
It is recommended to concat all plugins together with lazySizes. In case you don't concat it is recommended to include the plugin scripts *before* the lazySizes main script.
Expand Down
2 changes: 1 addition & 1 deletion plugins/artdirect/ls.artdirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if(typeof module == 'object' && module.exports){
factory(require('lazysizes'));
} else if (typeof define == 'function' && define.amd) {
require(['lazysizes'], factory);
define(['lazysizes'], factory);
} else if(window.lazySizes) {
globalInstall();
} else {
Expand Down
2 changes: 1 addition & 1 deletion plugins/artdirect/ls.artdirect.min.js

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

2 changes: 1 addition & 1 deletion plugins/aspectratio/ls.aspectratio.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if(typeof module == 'object' && module.exports){
factory(require('lazysizes'));
} else if (typeof define == 'function' && define.amd) {
require(['lazysizes'], factory);
define(['lazysizes'], factory);
} else if(window.lazySizes) {
globalInstall();
} else {
Expand Down
2 changes: 1 addition & 1 deletion plugins/aspectratio/ls.aspectratio.min.js

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

2 changes: 1 addition & 1 deletion plugins/attrchange/ls.attrchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if(typeof module == 'object' && module.exports){
factory(require('lazysizes'));
} else if (typeof define == 'function' && define.amd) {
require(['lazysizes'], factory);
define(['lazysizes'], factory);
} else if(window.lazySizes) {
globalInstall();
} else {
Expand Down
2 changes: 1 addition & 1 deletion plugins/attrchange/ls.attrchange.min.js

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

2 changes: 1 addition & 1 deletion plugins/bgset/ls.bgset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if(typeof module == 'object' && module.exports){
factory(require('lazysizes'));
} else if (typeof define == 'function' && define.amd) {
require(['lazysizes'], factory);
define(['lazysizes'], factory);
} else if(window.lazySizes) {
globalInstall();
} else {
Expand Down
Loading

0 comments on commit 83f8871

Please sign in to comment.