Commit 36960964eac8bbce240322af4f665eac099aac2a
Use `options` instead of `read` as options property
Charles Lehner committed on 8/28/2016, 5:37:08 AMParent: b7351a2c0d7fa0d7d5a065cfd2cf419681d5eee8
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -29,10 +29,11 @@ | ||
29 | 29 … | opt.placeholder ? h('option', |
30 | 30 … | {disabled: true, selected: true, hidden: true, value: ''}, |
31 | 31 … | opt.placeholder) : null |
32 | 32 … | ) |
33 | - if (opt.read) pull( | |
34 | - opt.read, | |
33 … | + var readOptions = opt.options || opt.read | |
34 … | + if (readOptions) pull( | |
35 … | + readOptions, | |
35 | 36 … | pull.filter(), |
36 | 37 … | pull.drain(function (option) { |
37 | 38 … | select.appendChild(option) |
38 | 39 … | if (option.value === opt.default) { |
Built with git-ssb-web