if you try to apply the itemslide on a container without any children you get the error:
Uncaught TypeError: Cannot read property 'offsetWidth' of undefined
Patch (check length):
// Stuff to add for compatibility with Zepto
$.fn.outerWidth = function () {
if (this.length) {
var el = $(this)[0];
var width = el.offsetWidth;
var style = getComputedStyle(el);
width += parseInt(style.marginLeft) + parseInt(style.marginRight);
return width;
} else {
return 0;
}
};
Hey there,
if you try to apply the itemslide on a container without any children you get the error:
Uncaught TypeError: Cannot read property 'offsetWidth' of undefined
Patch (check length):
P.s: Sorry for not using git correctly :(