Skip to content

2.0.0

Compare
Choose a tag to compare
@sandstrom sandstrom released this 17 Aug 16:52
· 73 commits to master since this release

jQuery is no longer a dependency (breaking)

// OLD
new PinchZoom($('#my-id'), options); 

// NEW
new PinchZoom(document.querySelector('#my-id')), options);

RTP namespace is removed (breaking)

// OLD
new RTP.PinchZoom(myEl, options); 

// NEW
new PinchZoom(myEl, options);

To make it available under the old namespace, use this snippet:

if (!window.RTP) { window.RTP = {}; }
window.RTP.PinchZoom = window.PinchZoom;