diff --git a/Magnifier.js b/Magnifier.js index 4ff5e1d..b7c77f1 100755 --- a/Magnifier.js +++ b/Magnifier.js @@ -565,6 +565,16 @@ var Magnifier = function (evt, options) { thumbObj.src = thumb.src; }; + this.remove = function () { + curData.w = 0; + curData.h = 0; + onThumbLeave(); + }; + + this.reset = function () { + curData = data[curIdx]; + }; + evt.attach('mousemove', document, function (e) { pos.x = e.clientX; pos.y = e.clientY; @@ -587,4 +597,4 @@ var Magnifier = function (evt, options) { setThumbData(curThumb, curData); } }); -}; \ No newline at end of file +};