addressed PR feedback: added comments

This commit is contained in:
Vladimir Matveev
2015-07-15 13:16:12 -07:00
parent 7d6f8f33ce
commit 93e5cae729
+2
View File
@@ -248,6 +248,8 @@ namespace 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();
}