From 5a946019cd2e7eb26eb5980503275bc5f9034ee4 Mon Sep 17 00:00:00 2001 From: Tom Doan Date: Wed, 10 Aug 2016 19:23:04 +0800 Subject: [PATCH] Fix leftover resize handler after destroy(); add magnifystart and magnifyend events --- README.md | 29 +++++++++++++++++++------ bower.json | 2 +- dist/js/jquery.magnify.js | 45 +++++++++++++-------------------------- package.json | 2 +- 4 files changed, 40 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 9b1c6d8..37e8477 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you don't use jQuery, then you can use [TrySound's vanilla JS version](https: ### Step 1: Link the required files -```html +``` @@ -25,13 +25,13 @@ You have complete control over the style and size of the lens by modifying `magn The URI to the large image can be placed in the `data-magnify-src` attribute (as shown below) or passed as the `src` option when calling the `.magnify()` function. -```html +``` ``` If the `data-magnify-src` attribute or `src` option is not used, then Magnify will try to grab the large image from the parent `` tag, e.g.: -```html +``` @@ -41,7 +41,7 @@ If the `data-magnify-src` attribute or `src` option is not used, then Magnify wi Make sure this comes after the two required JavaScript files from Step 1 are loaded. -```html +```