jQuery: what is being extended here? -


$.ajax($.extend(true, {...  

can explain code doing?

yes. from: http://docs.jquery.com/utilities/jquery.extend

extend 1 object 1 or more others, returning modified object. if no target specified, jquery namespace extended. can useful plugin authors wishing add new methods jquery.

keep in mind target object modified, , returned extend().

if boolean true specified first argument, jquery performs deep copy, recursively copying objects finds. otherwise, copy share structure original object(s). undefined properties not copied. however, properties inherited object's prototype copied over.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -