Skip to content

Commit

Permalink
Add linkAttribute option to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Apr 18, 2016
1 parent 1444f47 commit 4be2938
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ <h2>
<td><code>2500</code></td>
<td>The time (in milliseconds) to display the error notice</td>
</tr>
<tr>
<td><var>linkAttribute</var></td>
<td><code>"href"</code></td>
<td>Attribute to retrieve the zoom image URL from.</td>
</tr>
<tr>
<td><var>preventClicks</var></td>
<td><code>true</code></td>
Expand Down
11 changes: 4 additions & 7 deletions src/easyzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
// The time (in milliseconds) to display the error notice.
errorDuration: 2500,

// Attribute to retrieve the zoom image URL from.
linkAttribute: 'href',

// Prevent clicks on the zoom image link.
preventClicks: true,

Expand All @@ -31,13 +34,7 @@
onHide: $.noop,

// Callback function to execute when the cursor is moved while over the image.
onMove: $.noop,

// Link attribute to retrieve the zoom image URL from, normally 'href'.
// Can be set to, for instance, 'data-zoom-url' if href points
// to something other than the large image.
//
linkAttribute: 'href'
onMove: $.noop

};

Expand Down

0 comments on commit 4be2938

Please sign in to comment.