Periodic reminder that optional chaining in JavaScript is a thing now. So instead of this: this.bindingTeardown && this.bindingTeardown(); you can just do this this.bindingTeardown?.();
https://bugzilla.mozilla.org/attachment.cgi?id=152157&action=edit … I guess the actual "use that for document.all" bit was jst in https://bugzilla.mozilla.org/attachment.cgi?id=153679&action=edit … (see the JSRESOLVE_DETECTING checks there).
-
-
I was perp of DETECTING but it did not create a new value that is not == null or undefined.
-
Ah, so... The initial impl in Mozilla only did the "if (document.all)" thing: made it test false, while document.all would be an object in practice. Then later when we tried to harmonize this across browsers, the magic "object == null" thing was an easier sell than DETECTING
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
/cc 