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>
|
<p>selected: {{selected}}</p>
|
||||||
|
|
||||||
<select bind:value='selected'>
|
<select bind:value='selected'>
|
||||||
<option value="a">a</option>
|
<option>a</option>
|
||||||
<option value="b">b</option>
|
<option>b</option>
|
||||||
<option value="c">c</option>
|
<option>c</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<p>selected: {{selected}}</p>
|
<p>selected: {{selected}}</p>
|
Loading…
Reference in new issue