Verified that addPreSearch returns a ContextSensitiveHandler, and since the handler is added against a control, the getEventSource can return a Control as well..

This commit is contained in:
Daryl LaBar
2016-08-17 14:08:01 -04:00
parent 0ab270c80b
commit 5953dd4f6c

4
xrm/xrm.d.ts vendored
View File

@@ -786,7 +786,7 @@ declare namespace Xrm
*
* @return The event source.
*/
getEventSource(): Attribute | Entity;
getEventSource(): Attribute | Control | Entity;
/**
* Gets the shared variable with the specified key.
@@ -1726,7 +1726,7 @@ declare namespace Xrm
*
* @param {Function} handler The handler.
*/
addPreSearch( handler: () => void ): void;
addPreSearch( handler: ContextSensitiveHandler ): void;
/**
* Adds an additional custom filter to the lookup, with the "AND" filter operator.