Hi,
I am trying to use the extend for the defaults,options in a plugin. But it does not work as described in documentation.
var empty = {}
var defaults = { validate: false, limit: 5, name: "foo" };
var options = { validate: true, name: "bar" };
var settings = $.extend(empty, defaults, options);
Here the settings is supposed to Merge defaults and options, without modifying the defaults.
but a alert(settings.validate) shows true..which means it has overridden...any comments
THnks Coool