Posts Tagged jQuery

Recursive object merge with $.extend()

This post comes as an addition to this article:
Coding with a purpose: jquery $.extend() and $.fn.extend() confusion

As recommended in a jQuery plugin structure, I have a separate “default” object ($.fn.myplugin.defaults) which holds my default values for the plugin.
I then merge this object in the main function with a “configuration” object passed in Read the rest of this entry »

, ,

No Comments