Closed daniel-nelson closed 9 years ago
I considered that after @TooTallNate recommended it, but part of the reason for this commit is to accommodate unforeseen use cases of Scribe. What if a use case applied Scribe to a detached element? There wouldn't be a document. Rather than add more complexity to handle that case, I thought it better to just leave the decision to the developer. But I could certainly adjust it to auto-compute.
Yeah, perhaps adjust to autocompute if targetWindow isn't provided.
Merge conflict!
@OliverJAsh resolved conflict
Another merge conflict. Also is this just bundle in your latest pull request? It looks like it. Please see the comments on that one
Why not derive the targetWindow from the element? E.g.