Skip to content

Commit

Permalink
Merge pull request #171 from dascritch/preprod
Browse files Browse the repository at this point in the history
RELEASE 7.0.1 , bugfix
  • Loading branch information
dascritch authored Apr 27, 2021
2 parents 5ac532e + 9007580 commit ac10e6c
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 22 deletions.
8 changes: 7 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
RELEASE NOTES actual, 7.0
RELEASE NOTES version 7.0.1
===========================

* Regression on `<a>` tags with actions ([#170](#170)), released as 7.0.1
* Simplify [examples/Usage_controller.html](examples/Usage_controller.html)

RELEASE NOTES version 7.0
=========================

**INCOMPATIBLES CHANGES** : Nothing incompatible changed is you only used HTML layout or CSS variables. But, there may be some work to adapt previous cpu-audio.js (< 7.0) to cpu-audio version and above 7, **only and only if** you used the javascript API on `document.CPU` or component`.CPU`. We hope Javascript coders will enjoy most of thoses changes, and [discuss about them in our tickets](https://github.com/dascritch/cpu-audio/issues).
Expand Down
4 changes: 2 additions & 2 deletions build/cpu-audio.big-square.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/cpu-audio.big-square.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/cpu-audio.direct-download.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/cpu-audio.direct-download.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/cpu-audio.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/cpu-audio.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/cpu-audio.test-all-buttons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/cpu-audio.test-all-buttons.js.map

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions examples/Usage_controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@
<h1>CPU-Audio usage example : Usage Controller</h1>

<p>
At start, a &lt;cpu-controller&gt; without any valid &lt;cpu-audio&gt; should only be a placeholder.
At start, a &lt;cpu-controller&gt; without any valid &lt;cpu-audio&gt; should only be a placeholder.<br />
Click to <button type="button" id="add">add a source</button> as many as you want.
</p>

<cpu-controller hide="poster"></cpu-controller>

<div id="zone">
</div>

<button type="button" id="add">Add a source</button>

</body>

<script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cpu-audio",
"version": "7.0",
"version": "7.0.1",
"description": "An audio WebComponent to provide an user-interface, timecoded links and some other features to an <audio> tag",
"main": "index.js",
"directories": {
Expand Down
5 changes: 3 additions & 2 deletions src/build_interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function buildInterface(elCPU) {
play : trigger.play,
time : trigger.throbble,
actions : () => {elCPU.showActions();},
back : () => {elCPU.showMain();},
back : (event) => {elCPU.showMain(); console.log(event); event.preventDefault();},
poster : () => {elCPU.showMain();},
restart : trigger.restart,
toggleplay : trigger.toggleplay,
Expand All @@ -58,7 +58,8 @@ export function buildInterface(elCPU) {
nexttrack : trigger.nexttrack,
};
for (let elementId in cliquables) {
elCPU.shadowId(elementId)?.addEventListener('click', cliquables[elementId], passiveEvent);
const el = elCPU.shadowId(elementId);
el?.addEventListener('click', cliquables[elementId], el.tagName == 'A' ? {} : passiveEvent);
}

// relative browsing buttons management
Expand Down
2 changes: 1 addition & 1 deletion src/license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @license
Cpu-Audio: an extension to the hash system to address timecode into audio/video elements and a player WebComponent
Version 7.0
Version 7.0.1
Copyright (C) 2014-2021 Xavier "dascritch" Mouton-Dubosc & contributors.
License GNU GPL 3

Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @license
Cpu-Audio: an extension to the hash system to address timecode into audio/video elements and a player WebComponent
Version 7.0
Version 7.0.1
Copyright (C) 2014-2021 Xavier "dascritch" Mouton-Dubosc & contributors.
License GNU GPL 3
Expand Down

0 comments on commit ac10e6c

Please sign in to comment.