New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Question) Unclear $.fn initiation #16
Comments
Hello, Let me know if this is helpful :) |
Thank you for your response. It is helpful, yes :) But.. I thought that the custom override of defaults is done here: function Plugin(element, options) {
this.element = $(element);
this.doc = $(document);
this.win = $(window);
this.settings = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this._title = this.element.attr('title');
this.mode = 'hide';
this.ieFade = !supportsTransitions;
this.init();
} Isn't it? $.tipso({
background: "#000"
});
// NOT necessary
$(#id).tipso({
background: "#000"
}); It is just that I don't understand and want to learn what is happening.. Thank you for your time! |
It is like this, And in the second part Hopefully this would clear things more :) |
Thank you very much! This is helpful. Keep up 👍 |
Hi Bojan,
Nice plugin you build! I was searching for a good example of the pattern you are using and so I found Tipso.
But this line is not clear for me:
https://github.com/object505/tipso/blob/master/src/tipso.js#L504(line number changes)What is the meaning of the following?
The text was updated successfully, but these errors were encountered: