mozilla

Compare Revisions

Components.utils.getWeakReference

Change Revisions

Revision 30890:

Revision 30890 by Mgjbot on

Revision 30891:

Revision 30891 by MKaply on

Title:
Components.utils.getWeakReference
Components.utils.getWeakReference
Slug:
Components.utils.getWeakReference
Components.utils.getWeakReference
Tags:
XPCOM, XPConnect, NeedsExample, "XPCOM:Language Bindings"
XPCOM, XPConnect, NeedsExample, "XPCOM:Language Bindings"
Content:

Revision 30890
Revision 30891
n11      This method was introduced in <a href="en/Firefox_3">Firefon11      This method was introduced in <a href="/en/Firefox_3_for_de
>x 3</a> and is used for obtaining a weak reference for an object.>velopers" title="en/Firefox_3_for_developers">Firefox 3</a> and i
 >s used for obtaining a weak reference for an object.
tt13    <p>
13    <div class="noinclude"></div>{{ languages( { "ja": "ja/Compon14      {{ languages( { "ja": "ja/Components.utils.getWeakReference
>ents.utils.getWeakReference" } ) }}>" } ) }}
15    </p>
16    <p>
17      &nbsp;
18    </p>
19    <p>
20      To obtain the object reference, you have to call .get() on 
 >the resulting object.
21    </p>
22    <p>
23      In addition, just because get succeeds doesn't mean your ob
 >ject is valid. It might simply not have been garbage collected. Y
 >ou might have to check other aspects of the object (like parentNo
 >de on a DOM node) to verify the object is truly what you want.
24    </p>

Back to History