addressed PR feedback: added comments

This commit is contained in:
Vladimir Matveev 2015-07-09 13:13:49 -07:00
parent ee1350b40e
commit e190761d96

View File

@ -247,6 +247,8 @@ module ts {
}
public dispose(): void {
// if scriptSnapshotShim is a COM object then property check becomes method call with no arguments
// 'in' does not have this effect
if ("dispose" in this.scriptSnapshotShim) {
this.scriptSnapshotShim.dispose();
}