git ssb

0+

cel / hypercombo



Commit 36960964eac8bbce240322af4f665eac099aac2a

Use `options` instead of `read` as options property

Charles Lehner committed on 8/28/2016, 5:37:08 AM
Parent: b7351a2c0d7fa0d7d5a065cfd2cf419681d5eee8

Files changed

index.jschanged
index.jsView
@@ -29,10 +29,11 @@
2929 opt.placeholder ? h('option',
3030 {disabled: true, selected: true, hidden: true, value: ''},
3131 opt.placeholder) : null
3232 )
33- if (opt.read) pull(
34- opt.read,
33 + var readOptions = opt.options || opt.read
34 + if (readOptions) pull(
35 + readOptions,
3536 pull.filter(),
3637 pull.drain(function (option) {
3738 select.appendChild(option)
3839 if (option.value === opt.default) {

Built with git-ssb-web