-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ditch the idea of "different module flavours"
The whole `dist` directory shouldn't have been added in the first place. It's basically spoon-feeding authors a bunch of copy-and-pasted that are already available from the `src` directory. AMD support is axed altogether in favour of full ESM support. CommonJS's support has been moved to the ES5 version of the file (src/accordion.js) where it extends the `module.exports` object, if present. These removals are breaking changes, so the next release will be a major version bump.
- Loading branch information
Showing
13 changed files
with
95 additions
and
4,257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
demos/* linguist-documentation | ||
dist/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var acc = []; | ||
document.onload = function(config){ | ||
window.onload = function(event){ | ||
[].forEach.call(document.querySelectorAll(".accordion"), function(el){ | ||
acc.push(new Accordion(el, config)); | ||
acc.push(new Accordion(el, window.demoConfig)); | ||
}); | ||
}; |
Oops, something went wrong.