Hi to all.
I have this problem see the code :
(function($){
$.fn.my_plugin = function(options){
return this.each(function(){
(new $.MyClass(this, options));
});
}
$.MyClass = function(active_item, options) {
var containers = new Array();
containers.push(new $.Type(this));
function bark() {
alert('wuf wuf');
}
}
$.Type = function(referer) {
referer.bark();
}
})(jQuery);
Now, problem is here referer.bark() i can’t send object $.MyClass as reference to next object $.Type and call methods. Can someone help, please.
Thank you