@davidbaron @khuey_Well, normal interface props live on protos. Should polyfilling EventTarget break for the global, for example?
@BrendanEich @davidbaron @Khuey If I set EventTarget.prototype.addEventListener, should it affect window.addEventListener? Imo, it should.
-
-
@bz_moz IOW, proto-methods should be in prototypes; data vars like mozIndexedDB should be in global; WebIDL has to cope.@davidbaron@Khuey -
@BrendanEich@davidbaron@Khuey Putting proto-methods on protos means object-detection of, say, requestAnimationFrame has the same problem. - 2 more replies
New conversation -
-
-
@bz_moz if window implements EventTarget, ok. But that would break var+obj-detection. Can't have it both ways.@davidbaron@Khuey -
@BrendanEich@davidbaron@Khuey Window inherits from EventTarget.
End of conversation
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.