jQuery: The Write Less, Do More JavaScript Library

 « Return to Thread: jQuery.extend(deep) not working?

Re: jQuery.extend(deep) not working?

by Perlover :: Rate this Message:

Reply to Author | View in Thread


I found my trouble

> $(function ()
> {
>  $.getJSON("http://foo.com/json/?callback=?", {ref: document.referrer,
> loc: window.location});
>
> });

jQuery serializes the document.referrer & window.location as Object()
with properties
I resolved this by:

$.getJSON("http://foo.com/json/?callback=?", {ref: String
(document.referrer),
loc: String(window.location)});

 « Return to Thread: jQuery.extend(deep) not working?