[jquery-dev] Re: running qunit in envjs

2009-05-16 Thread chris thatcher
hi john, your right that is where it should be done. the problem arises from the fact that we load the scripts for the test from the html itself, as part of the browser emulation process. this means that we can only affect the global scope before the html is loaded, onload, and after load.

[jquery-dev] Re: Back to selectors

2009-05-16 Thread Ricardo
Is that the real mark-up you're using? IDs are unique so you should't have any other #list elements to choose. On May 15, 5:06 pm, Fabio_Floripa fabio_da_cu...@hotmail.com wrote: Hi quick help how can i go back to one selecotr in the hierarchy eg: ul id=selector         ol id=list        

[jquery-dev] jQuery(object/).get(0) is not a DOM Element in FF, but is in Safari. Is this a bug?

2009-05-16 Thread stephb...@googlemail.com
According to FireBug, FireFox thinks objects and embeds are functions. typeof(jQuery(object/).get(0)); // Returns function() in FF, but object in Safari The same is true if you select an Object Element that is already in the DOM: typeof(jQuery(object).get(0)); // Returns function() in FF,

[jquery-dev] Re: Error in attr when adding function to Object.prototype

2009-05-16 Thread Phrogz
BTW, here's how I worked around this problem in my own code: Object.prototype.doStuff = function(){ // Hack to workaround jQuery bug if ( this==window || this==document ) return; ... } I had hoped I could extend the prototypes for windows and HTMLDocuments to have an intercepting doStuff

[jquery-dev] Re: Error in attr when adding function to Object.prototype

2009-05-16 Thread Phrogz
On Apr 21, 1:45 am, Mark Gibson jollyt...@gmail.com wrote: It's generally considered very bad practice in the Javascript world to extend Object.prototype:http://erik.eae.net/archives/2005/06/06/22.13.54/ Your best bet is to move your merge function elsewhere. I think it is mostly generally