Skip to content

Commit

Permalink
Merge pull request #1 from janrembold/events
Browse files Browse the repository at this point in the history
Added Events
  • Loading branch information
janrembold committed Dec 9, 2015
2 parents 1ae1ad4 + e8e3d82 commit 3d7ef47
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,18 @@ onGetWidth: function(){

```

---
### Events

## Attributes
These events get fired:

| Event | Description | Element |
| ----- | ----------- | ------- |
| ready.responsiveImage | This event fires when the responsive image was initially loaded, fires only once | The picture container |
| all.ready.responsiveImage | This event fires when all responsive images were initially loaded, fires only once | Global - $(window) |
| new.source.responsiveImage | This event fires when the image source was changed | The picture container |


### Attributes

Following image attributes can be set with there corresponding data attributes.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-responsive-image",
"version": "1.1.0",
"version": "1.2.0",
"homepage": "https://github.com/janrembold/jquery-responsive-image",
"authors": [
"Jan Rembold <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion build/jquery.responsiveImage.map

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

4 changes: 2 additions & 2 deletions build/jquery.responsiveImage.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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-responsive-image",
"version": "1.1.0",
"version": "1.2.0",
"description": "A jQuery responsive image plugin with viewport or container based width matching support",
"author": "Jan Rembold <[email protected]>",
"main": "build/jquery.responsiveImage.min.js",
Expand Down
7 changes: 6 additions & 1 deletion src/jquery.responsiveImage.js

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

0 comments on commit 3d7ef47

Please sign in to comment.