diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-05-15 09:10:41 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-05-15 09:10:41 -0400 |
commit | dae85deb62168cbfae4557aa8632896592d71cf9 (patch) | |
tree | 2303a8333c8f49ae1e4167e520c32041666a8715 /src/new_fields/Doc.ts | |
parent | 89556cce212e8d8d2678e628f3bba5ca1768c902 (diff) |
set hover highlight for search results
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index d6043ef7a..2ae816da4 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -140,7 +140,7 @@ export namespace Doc { return Cast(Get(doc, key, ignoreProto), ctor) as FieldResult<T>; } export async function SetOnPrototype(doc: Doc, key: string, value: Field) { - const proto = Object.getOwnPropertyNames(doc).indexOf("isProto") == -1 ? doc.proto : doc; + const proto = Object.getOwnPropertyNames(doc).indexOf("isPrototype") == -1 ? doc.proto : doc; if (proto) { proto[key] = value; |