jQuery plugin call internal function
- by pbcoder
I want to call removeSomething() (see in line 9) internally:
JS-Code is:
(function($){
$.fn.extend({
Engine: function(options) {
var defaults = {
...
};
var options = $.extend(defaults, options);
removeSomething();
//-----------------------------------------------------------------------
//Public Functions ------------------------------------------------------
//-----------------------------------------------------------------------
this.removeSomething = function() {
...
};
}
});
})(jQuery);
But if I call removeSomething console outputs that removeSomething is not a function, how do I have to call this function? The function should be available internally and externally.
Thanks for help!