Skip to content
This repository was archived by the owner on Aug 21, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/e-smart-zoom-jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
$(window).bind('resize.smartZoom', windowResizeEventHandler); // call "adjustToContainer" on resize

if(settings.initCallback != null) // call callback function after plugin initialization
settings.initCallback.apply(this, targetElement);
settings.initCallback.apply(this, [targetElement]);
},
/**
* zoom function used into the plugin and accessible via direct call (ex : $('#zoomImage').smartZoom('zoom', 0.2);)
Expand Down