Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

85 #90

Merged
merged 4 commits into from
Aug 27, 2015
Merged

85 #90

merged 4 commits into from
Aug 27, 2015

Conversation

scottjehl
Copy link
Member

This changes our default insert behavior to insert after the last stylesheet or script in the page if qsa is supported. Otherwise it inserts after the last script. In either case, the insertBefore is performed in the reference element's nextSibling, which serves as an "insertAfter" regardless of whether the reference element has a nextSibling or not (news to me! Verified in IE6+).

Despite the default behavior change, we've preserved the behavior of the "before" argument, if provided, so that the link is still inserted before that specific element in that case. We may want to standardize on inserting "after" in a later release. Fixes #85.

* master:
  update functional test demos to use before, since it's recommended
  Remove deprecated callback argument
  fixes #76
  Create import.html
  Remove moot `version` property from bower.json
…lesheet or script in the page if qsa is supported. Otherwise it inserts after the last script. In either case, the insertBefore is performed in the reference element's nextSibling, which serves as an "insertAfter" regardless of whether the reference element has a nextSibling or not. Despite the default behavior change, we've preserved the behavior of the "before" argument, if provided, so that the link is still inserted before that specific element in that case. We may want to standardize on inserting "after" in a later release. Fixes #85.
@scottjehl
Copy link
Member Author

zachleat added a commit that referenced this pull request Aug 27, 2015
@zachleat zachleat merged commit 35dd74e into master Aug 27, 2015
@zachleat zachleat deleted the 85redux branch August 27, 2015 20:47
@paulirish
Copy link

This looks beautiful, including the description and plan.

Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants