Permalink
Browse files

Minor documentation tweak

  • Loading branch information...
1 parent 6366c3a commit 4463c52ebbf8b908ca964286e7862b9abf0185b2 @iloveitaly committed Jan 16, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 README.md
View
@@ -14,11 +14,13 @@ bower install --save jquery.retina
## Usage
```javascript
-$('img.retina').retina();
+$(window).load(function() {
+ $('img.retina').retina();
-$(element).retina({
- save_size: false,
- suffix: '-some-crazy-2x-suffix'
+ $(element).retina({
+ save_size: false,
+ suffix: '-some-crazy-2x-suffix'
+ });
});
```

0 comments on commit 4463c52

Please sign in to comment.