why returning "this" in this function here:
(function($) {
$.fn.menumaker = function(options) {
var cssmenu = $(this), settings = $.extend({
title: "Menu",
format: "dropdown",
sticky: false
}, options);
return this.each(function() {
this
is the "DOM element" ? If we want to use the content of the function, why not referencing $(this)
to use the element we are targeting, instead of this
?
Thanks