support optional scope on ITemplateLinkingFunction

This commit is contained in:
jraymakers
2014-01-07 15:59:44 -08:00
parent 176249d88c
commit aea6e0dab3

View File

@@ -537,9 +537,15 @@ declare module ng {
directive(directivesMap: any): ICompileProvider;
}
interface ITemplateLinkingFunction {
interface ICloneAttachFunction {
// Let's hint but not force cloneAttachFn's signature
(scope: IScope, cloneAttachFn?: (clonedElement?: JQuery, scope?: IScope) => any): JQuery;
(clonedElement?: JQuery, scope?: IScope): any
}
interface ITemplateLinkingFunction {
(scope: IScope, cloneAttachFn?: ICloneAttachFunction): JQuery;
// scope argument is optional
(cloneAttachFn?: ICloneAttachFunction): JQuery;
}
///////////////////////////////////////////////////////////////////////////