mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-02 18:38:48 +03:00
Knockout simplify Object.setPrototypeOf
This commit is contained in:
parent
b7963ebfa0
commit
4dbcade830
5 changed files with 42 additions and 60 deletions
|
|
@ -29,9 +29,7 @@ ko.observable = initialValue => {
|
|||
ko.subscribable['fn'].init(observable);
|
||||
|
||||
// Inherit from 'observable'
|
||||
Object.setPrototypeOf(observable, observableFn);
|
||||
|
||||
return observable;
|
||||
return Object.setPrototypeOf(observable, observableFn);
|
||||
}
|
||||
|
||||
// Define prototype for observables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue