Revision 126803 of document.loadOverlay

  • Revision slug: Talk:DOM/document.loadOverlay
  • Revision title: document.loadOverlay
  • Revision id: 126803
  • Created:
  • Creator: q0k
  • Is current revision? No
  • Comment an example of relying on observers to run subsequent overlays?; 31 words added

Revision Content

The phrase about observer being optional came straight from the IDL actually. --Nickolay 08:47, 30 November 2005 (PST)

I actually noticed this when patching a small crasher in loadOverlay, tho it happened after I submitted the changes here. The "optional" part's definitely wrong, tho (testcase). I'm not even sure that you can have optional parameters in XPCOM. --Waldo 13:23, 30 November 2005 (PST)

Optional in the sense that null may be passed.
I remember a bug that was caused by the fact that current implementation doesn't deal well with null observers, and agree with your edit; just had to mention that IDL says otherwise. --Nickolay 14:04, 30 November 2005 (PST)

I think that an example of relying on observers to run subsequent overlays would be in place in this article. Could you please add it? q0k 05 January 2010

Revision Source

<p>The phrase about observer being optional came straight from the IDL actually. --<a href="/User:Nickolay" title="User:Nickolay">Nickolay</a> 08:47, 30 November 2005 (PST)</p>
<dl> <p>I actually noticed this when patching a small crasher in loadOverlay, tho it happened after I submitted the changes here. The "optional" part's definitely wrong, tho (<a class="external" href="http://whereswalden.com/files/mozilla/testcases/xuloverlay/omittedObserver.xul">testcase</a>). I'm not even sure that you can have optional parameters in XPCOM. --<a href="/User:Waldo" title="User:Waldo">Waldo</a> 13:23, 30 November 2005 (PST)</p> <dd> <dl> <dd>Optional in the sense that null may be passed.<br> I remember a bug that was caused by the fact that current implementation doesn't deal well with null observers, and agree with your edit; just had to mention that IDL says otherwise. --<a href="/User:Nickolay" title="User:Nickolay">Nickolay</a> 14:04, 30 November 2005 (PST)</dd> </dl> </dd> <p>I think that an example of relying on observers to run subsequent overlays would be in place in this article. Could you please add it? <a href="https://developer.mozilla.org/User:q0k" rel="custom nofollow">q0k</a> 05 January 2010</p>
</dl>
Revert to this revision