l'errore è qui
codice:initialize: function(wrapper,options) { this.setOptions(options); this.wrapper = $(wrapper); this.wrapper.setStyles({ position: 'relative', overflow: 'hidden' });
Errore: this.wrapper è nullo:
controlla l'assegnazione precedente this.wrapper = $(wrapper); assicurandoti che wrapper esista