I\'m writing simple slider for my website. This slider contains list items. I want to use OOP approach.
My actual code:
var miniSlider = function(objId)
Save a reference to this in a local variable, and use that variable instead of this in the nested function.
this
var self = this; this.pagerNext.on("click", function() { alert(self.obj.settings['items']); });