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


+1

jQuery 1.3.2

I have endless circle in like this code:

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

This code is second ready() callback. If i remove this code from my
scripts, all works fine
If i add, i have endless circle in browser (firefox 3.0.11) and i see
a following errors not minimised jquery version:

Error: [Exception... "Component returned failure code: 0x80004001
(NS_ERROR_NOT_IMPLEMENTED) [nsIDOMLocation.host]"  nsresult:
"0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame ::
http://mysite-url-here.com/js/jquery-1.3.2.js :: anonymous :: line
604"  data: no]
Source File: http://mysite-url-here.com/js/jquery-1.3.2.js
Line: 604

I think that this very bad bug because it causes endless circle of
loading at serfer side ...

On May 21, 10:20 pm, Adam Nelson <a...@...> wrote:

> I'm trying out this need extension:
>
> http://binarykitten.jkrswebsolutions.co.uk/2009/01/21/jquery-plugin-a...
>
> which allows jQuery to do a HEAD request on an arbitrary URL in order
> to grab header values for a given page.  Unfortunately, if that page
> is the page the script is currently running from, it goes into an
> infinite loop which results in:
>
> [Exception... "Componentreturnedfailurecode:0x80004001
> (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMLocation.host]" nsresult:
> "0x80004001(NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame ::http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js::
> anonymous :: line 12" data: no]
> [Break on this error] (function(){var l=this,g,y=l.jQuery,p=l.....each
> (function(){o.dequeue(this,E)})}});
>
> If I add deep to jQuery.extend(), I get "deep is not defined".
>
> Does anybody have any help for this?  Should thecodebe refactored to
> not extend but to be a more simplistic?

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