Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Sep 9, 2022
1 parent 8fd818e commit adf7db5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/factory/index.html.pug
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ block content
h3 picker.source
p Return the option picker source element that holds the initial option value.
pre: code
| picker.source.addEventListener('change', function() {
| picker.source.addEventListener('change', function () {
| console.log(this.value);
| }, false);
h3 picker.state
Expand Down Expand Up @@ -274,7 +274,7 @@ block content
h3 picker.on(event, then)
p Add a new hook.
pre: code
| picker.on('change', function(option, options) {
| picker.on('change', function (option, options) {
| console.log(option);
| });
pre: code
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta content="#000" name="theme-color">
<meta content="width=device-width" name="viewport">
<meta content="Just a generic custom `&lt;select&gt;` element with accessibility in mind." name="description">
<title>Option Picker 1.3.9</title>
<title>Option Picker 1.3.10</title>
<link href="index.min.css" rel="stylesheet">
<style>
* {
Expand Down Expand Up @@ -76,7 +76,7 @@
<body>
<p role="alert">Do you like this project? Please support my <a href="https://github.com/mecha-cms">Mecha CMS</a> project too. Thank you!</p>
<header>
<h1>Option Picker 1.3.9</h1>
<h1>Option Picker 1.3.10</h1>
<p>Just a generic custom <code>&lt;select&gt;</code> element with accessibility in mind.</p>
<hr>
</header>
Expand Down Expand Up @@ -230,7 +230,7 @@ <h3>picker.set(value)</h3>
<pre><code>picker.set('Option 1');</code></pre>
<h3>picker.source</h3>
<p>Return the option picker source element that holds the initial option value.</p>
<pre><code>picker.source.addEventListener('change', function() {
<pre><code>picker.source.addEventListener('change', function () {
console.log(this.value);
}, false);</code></pre>
<h3>picker.state</h3>
Expand Down Expand Up @@ -286,7 +286,7 @@ <h3>picker.off(event, then)</h3>
<pre><code>picker.off('change', onChange); // With context</code></pre>
<h3>picker.on(event, then)</h3>
<p>Add a new hook.</p>
<pre><code>picker.on('change', function(option, options) {
<pre><code>picker.on('change', function (option, options) {
console.log(option);
});</code></pre>
<pre><code>function onChange(option, options) {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,6 @@
'parent': null,
'size': 5
};
OP.version = '1.3.9';
OP.version = '1.3.10';
return OP;
}));
2 changes: 1 addition & 1 deletion index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,6 @@ OP.state = {
'size': 5
};

OP.version = '1.3.9';
OP.version = '1.3.10';

export default OP;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"scripts": {
"pack": "pack --clean=false --from=.github/factory --js-format=umd --js-name=OP --js-top='%(js.license)' --mjs=true --scss=true --to=."
},
"version": "1.3.9"
"version": "1.3.10"
}

0 comments on commit adf7db5

Please sign in to comment.