Add check if the compilationSetting object hasOwnProperty before add the property to TypeScriptLS object

This commit is contained in:
Yui T
2014-09-04 15:13:54 -07:00
parent b0654dc044
commit 623b97f2ec

View File

@@ -248,7 +248,9 @@ module Harness.LanguageService {
public setCompilationSettings(settings: any) {
for (var key in settings) {
this.settings[key] = settings[key];
if (settings.hasOwnProperty(key)) {
this.settings[key] = settings[key];
}
}
}