Benvie/dom.js — comment on commit b2f7804e3de5d93c43f879590dfbd4dfd5f74292
File:  line 0
By davidflanagan:

What did you actually change in src/impl/Location.js?
I see you wrapped it in defineLazyProperty, and some stuff has been reordered, I think.
But github's diff is pretty useless in this case: I can't tell what changed other than ordering.

fyi: I'm on the fence about the defineLazyProperty() change. If every invocation of dom.js creates a window, then every invocation will create a Location object. So there is no need to be lazy about it. Similarly for Document objects, and therefore Node and EventTarget. Elements, on the other hand, won't be initialized unless someone actually uses the DOM. I've been getting less strict about using defineLazyProperty everywhere, for what its worth.