Update src/runtime/store/index.ts

pull/6518/head
Simon H 4 years ago committed by GitHub
parent e8d2cf74e9
commit fe6e16062c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -214,7 +214,7 @@ export function derived<T>(stores: Stores, fn: Function, initial_value?: T): Rea
*/
export function readonly<T>(store: Readable<T>): Readable<T> {
return {
subscribe: store.subscribe
subscribe: store.subscribe.bind(store)
};
}

Loading…
Cancel
Save