瀏覽代碼

Address more comments.

No need to emit this signal.
ian-r-rose 8 年之前
父節點
當前提交
56f61a03b6
共有 1 個文件被更改,包括 2 次插入9 次删除
  1. 2 9
      src/common/observablestring.ts

+ 2 - 9
src/common/observablestring.ts

@@ -23,7 +23,7 @@ interface IObservableString extends IDisposable {
   /**
    * The value of the string.
    */
-  text : string;
+  text: string;
 
   /**
    * Insert a substring.
@@ -59,7 +59,6 @@ interface IObservableString extends IDisposable {
  */
 export
 class ObservableString implements IObservableString {
-
   /**
    * Construct a new observable string.
    */
@@ -135,13 +134,7 @@ class ObservableString implements IObservableString {
    * Set the ObservableString to an empty string.
    */
   clear(): void {
-    this._text = '';
-    this.changed.emit({
-      type: 'set',
-      start: 0,
-      end: 0,
-      value: ''
-    });
+    this.text = '';
   }
 
   /**