I have following code:
(function($){
$.fn.aRSSFeed = function(options) {
// defaultne nastavenia triednych premennych
$.aRSSFeed = {
minHeight: 0,
widgetPerPage: 9,
initializedWidgets: 0,
borderAround: 'centralBorder',
widgetPerRow: 3,
maxSavedFeeds: 24
};
})(jQuery);
And I want to change value of static variable widgetPerPage from outside, before initializations of individuals objects for elements with the plugin.
How I do it? I tried following:
$.fn.aRSSFeed({
maxSavedFeeds: 50
});
or:
$.fn.aRSSFeed.maxSavedFeeds = 50;
but it doesn’t work.
you missed closing brace
}of$.fn.aRSSFeed = function(options) {