Skip to content

Commit 8c0b6aa

Browse files
committed
Correct the attribute names in comments from 'size' to 'widths'
1 parent 6a8294f commit 8c0b6aa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

jquery.laziestloader.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @preserve LaziestLoader - v0.5.1 - 2014-06-19
2+
* @preserve LaziestLoader - v0.5.2 - 2015-09-24
33
* A responsive lazy loader for jQuery.
44
* http://sjwilliams.github.io/laziestloader/
55
* Copyright (c) 2014 Josh Williams; Licensed MIT
@@ -46,15 +46,15 @@
4646
* will be replaced by an integer from a list of available sizes.
4747
* Eg:
4848
*
49-
* <img data-pattern="path/toyourimage-{{size}}.jpg" data-size="[320, 640, 970]">
50-
* <img data-pattern="path/toyourimage-{{size}}.jpg" data-pattern-retina="path/toyourimage-{{size}}@2x.jpg" data-size="[320, 640, 970]">
51-
* <img data-pattern="path/toyourimage/{{size}}/slug.jpg" data-pattern-retina="path/toyourimage/{{size}}/[email protected]" data-size="[320, 640, 970]">
49+
* <img data-pattern="path/toyourimage-{{size}}.jpg" data-widths="[320, 640, 970]">
50+
* <img data-pattern="path/toyourimage-{{size}}.jpg" data-pattern-retina="path/toyourimage-{{size}}@2x.jpg" data-widths="[320, 640, 970]">
51+
* <img data-pattern="path/toyourimage/{{size}}/slug.jpg" data-pattern-retina="path/toyourimage/{{size}}/[email protected]" data-widths="[320, 640, 970]">
5252
*
5353
* Range of sizes, with slugs: specify a string path with a {{size}} that
5454
* will be replaced by a slug representing an image size.
5555
* Eg:
5656
*
57-
* <img data-pattern="path/toyourimage-{{size}}.jpg" data-size="[{width: 320, slug: 'small'},{width:900, slug: 'large'}]">
57+
* <img data-pattern="path/toyourimage-{{size}}.jpg" data-widths="[{width: 320, slug: 'small'},{width:900, slug: 'large'}]">
5858
*
5959
* @param {jQuery object} $el
6060
* @return {String}

jquery.laziestloader.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "laziestloader",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"author": "Josh Williams <[email protected]>",
55
"description": "A responsive-aware jQuery plugin to smartly lazy load images and other elements.",
66
"repository": {

0 commit comments

Comments
 (0)