Hi, i have these 2 (nearly identical modules in out typesafe project) both are basically the same, but one is using the function shorthand method.
when we run these through the compiler the first "ModOne" compiles correctly even thou me1 is not valid
the 2nd works correctly and gives us an error in the compiler.
anyone got ant thoughts as to why?
module ModOne {
// Class
export class DirectoryManager1 {
AttachDeleteEvents2(): void {
$('.ui-btn-delete').click((e) => {
var d: number = SDAFewf1;
var selectedIDs: number[] = me1.GetSelectedIDs()
});
}
}
}
module ModTwo {
// Class
export class DirectoryManager1 {
AttachDeleteEvents2(): void {
$('.ui-btn-delete').click(function (e) : void {
var d: number = SDAFewf2;
var selectedIDs: number[] = me2.GetSelectedIDs()
});
}
}
}
|