Urgh, I was typing too fast ;o( Meaning was lost. This is the amended
versio :
On Mar 20, 9:45 am, DBJDBJ wrote:
> The real issue is architecture of jQ. By design jQ object keeps its
> state. State being array of references to dom nodes aka elements.
> The "references" NOT the objects. The point
The real issue is architecture of jQ. By design jQ object keeps its
state. State being array of references to dom nodes aka elements.
The "references" no the objects. The pointers. One has to expect that
anything can happen to the objects which are being referenced.
Example:
var $1 = $("#sprite
On Mar 19, 5:00 pm, bob wrote:
> Well, that did not help much
> So what is the problem then? Why do I get false?
Internally, a jQuery object is an array of references to DOM objects.
Even though two jQuery objects may contain the same references
internally, they are distinct objects, and theref
Object comparisons aren't really
I think what mkmanning was saying is each time you reference $
('#home') it's going to
call jQuery to create a new Object. So to be honest I think even ($
('#home') == $('#home)) would return false.
Don't try and compare the jquery objects together. Use the ID or
Well, that did not help much
So what is the problem then? Why do I get false?
How do I get true value?
Two objects are equal if they refer to the exact same Object.
On Mar 19, 1:48 pm, bob wrote:
> How is it that I get false for the following?
> Shouldn't I get "true" as a result? if not, why?
>
>
>
> $(document).ready(function(){
>
> var one = $('#home');
>
> console.log('compar
6 matches
Mail list logo