Commit b78c00f8 authored by Grand Francois's avatar Grand Francois
Browse files

#45 INubReference : ajout de undefineReference()

Showing with 21 additions and 0 deletions
+21 -0
......@@ -310,6 +310,10 @@ export class BaseParam extends JalhydObject implements INubReference, NamedItera
}
}
public undefineReference() {
this._paramValues.undefineReference();
}
public get referenceDefinition(): string {
return this._paramValues.referenceDefinition;
}
......
......@@ -285,6 +285,10 @@ export class ParamValues implements INubReference, IterableValues {
this._nubRef.defineReference(target, desc);
}
public undefineReference() {
this._nubRef.undefineReference();
}
public get referencedNub(): IReferencedNub {
return this._nubRef.referencedNub;
}
......
......@@ -47,6 +47,11 @@ export interface INubReference {
*/
defineReference(target: IReferencedNub, desc: string): void;
/**
* supprime la référence
*/
undefineReference(): void;
/**
* description symbolique de la référence
*/
......@@ -96,6 +101,14 @@ export class NubReference implements INubReference {
this._refDefinition = desc;
}
/**
* supprime la référence
*/
public undefineReference() {
this._referencedNub = undefined;
this._refDefinition = undefined;
}
/**
* description symbolique de la référence
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment