Skip to content
Browse files

Tweak.

  • Loading branch information...
1 parent ab70ff8 commit 6d56050bdddff2487fc1d50f3c4030902385f86d @fblee fblee committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -3,7 +3,7 @@ jquery-imagefallback
Encapsulate fallback behavior when images fail to load. Works with Zepto.js as well. :)
-Call $('.foo').fallback on an image selector to fallback to another image if the
+Call `$('.foo').fallback` on an image selector to fallback to another image if the
main image fails to load.
Usage
@@ -18,7 +18,7 @@ $('img.photo').fallback('http://google.com/fallback.jpg');
2. Specify a callback function:
```javascript
-$('.photo-container > img').fallback(function () {
- $('.photo-container').hide();
-}).attr('src', 'http://my.photosite.com/image1.jpg');
+ $('.photo-container > img').fallback(function () {
+ $('.photo-container').hide();
+ }).attr('src', 'http://my.photosite.com/image1.jpg');
```

0 comments on commit 6d56050

Please sign in to comment.
Something went wrong with that request. Please try again.