Fix for https://github.com/mark-rolich/Magnifier.js/issues/2