Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Migrate from document.defaultView => window. Fixes #10373 #524
@davidmurdoch @mikesherov One of the cool things about being document agnostic is that you can have jQuery in one (i)frame/primary document and script elements in other (i)frames w/o also having jQuery loaded in all (i)frames. I'm not sure how much compat jQuery has for this, but I thought it was a rad enough feature to add to my own lib. So basically before:
// elem is from another iframe so its document, window, & defaultView are different elem.ownerDocument.defaultView
Using the primary window's method kills that functionality.