We tried to use a code like this:
var instancesMobiscroll = [];
var x = document.getElementById('y');
mobiscroll.enhance(x);
instancesMobiscroll.push(x.mobiscroll('getInst'));
...
for (var i = 0; i < instancesMobiscroll.length; i++) {
instancesMobiscroll[i].destroy();
}
and we have this error:
Uncaught TypeError: x.mobiscroll is not a function
Thank you.