aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SerializationHelper.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-04-24 14:56:48 -0400
committerbobzel <zzzman@gmail.com>2024-04-24 14:56:48 -0400
commitaa4f7b37483c516b92181d3374d3151972b98383 (patch)
tree042520fc1fad30c00e27c532a872b4129f29264d /src/client/util/SerializationHelper.ts
parent9d69ab27de83ead3e499edc9028ba85749407a1e (diff)
fixed search on pdfs to display results when pDF is not selected. fixed presentation transitions to animate. changed so that annotaitons on pdfs would highlight when following a pres slide. fixed scrolling to annotations (and other viewSpecs) from presentations by using the slide target, not the slide as the focus document. cleaned up search and fixed to unhighlight searches on close. fixe pdf search unhighligting to work.
Diffstat (limited to 'src/client/util/SerializationHelper.ts')
-rw-r--r--src/client/util/SerializationHelper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/SerializationHelper.ts b/src/client/util/SerializationHelper.ts
index fa1a911f7..d9d22437c 100644
--- a/src/client/util/SerializationHelper.ts
+++ b/src/client/util/SerializationHelper.ts
@@ -65,7 +65,7 @@ export namespace SerializationHelper {
}
}
-export function Deserializable(className: string, afterDeserialize?: (obj: any) => void | Promise<any>, constructorArgs?: [string]): (constructor: { new (...args: any[]): any }) => void {
+export function Deserializable(classNameForSerializer: string, afterDeserialize?: (obj: any) => void | Promise<any>, constructorArgs?: [string]): (constructor: { new (...args: any[]): any }) => void {
function addToMap(className: string, Ctor: { new (...args: any[]): any }) {
const schema = getDefaultModelSchema(Ctor) as any;
if (schema.targetClass !== Ctor || constructorArgs) {
@@ -78,7 +78,7 @@ export function Deserializable(className: string, afterDeserialize?: (obj: any)
throw new Error(`Name ${className} has already been registered as deserializable`);
}
}
- return (ctor: { new (...args: any[]): any }) => addToMap(className, ctor);
+ return (ctor: { new (...args: any[]): any }) => addToMap(classNameForSerializer, ctor);
}
export function autoObject(): PropSchema {