can someone explain overwriting the default properties and even extending them with jQuery inside my plugin example, as well as the close function
$.fn.myObject = function(overwriteProperties) { var properties = {myproperty1: "defaultvalue"} // overwrite properties here function doStuffHere() { } return (function() { return this; // does this part here refer to the object of myDiv }); } $('#myDiv').myObject({myPoperty1:"newValue"});
source share