提交 d2cc9662 编写于 作者: J Johannes Rieken

don't unneccessary fire event when calling ContextKey#removeValue

上级 c536efdf
......@@ -37,7 +37,11 @@ export class Context implements IContext {
public removeValue(key: string): boolean {
// console.log('REMOVE ' + key + ' FROM ' + this._id);
return delete this._value[key];
if (key in this._value) {
delete this._value[key];
return true;
}
return false;
}
public getValue<T>(key: string): T {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册