mirror of https://github.com/sveltejs/svelte
commit
dee8694e3b
@ -0,0 +1,12 @@
|
||||
import * as shared from '../../shared/index.js';
|
||||
|
||||
export const nameMap = new Map();
|
||||
export const sharedMap = new Map();
|
||||
|
||||
Object.keys(shared).forEach( key => {
|
||||
const value = shared[ key ]; // eslint-disable-line import/namespace
|
||||
if ( typeof value === 'function' ) {
|
||||
nameMap.set( value.name, key );
|
||||
}
|
||||
sharedMap.set( key, value.toString() );
|
||||
});
|
@ -1,9 +1,9 @@
|
||||
<p>selected: {{selected}}</p>
|
||||
|
||||
<select bind:value='selected'>
|
||||
<option value="a">a</option>
|
||||
<option value="b">b</option>
|
||||
<option value="c">c</option>
|
||||
<option>a</option>
|
||||
<option>b</option>
|
||||
<option>c</option>
|
||||
</select>
|
||||
|
||||
<p>selected: {{selected}}</p>
|
Loading…
Reference in new issue