瀏覽代碼

docstring update

A. Darian 9 年之前
父節點
當前提交
d4908e1d5b
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/notebook/cells/widget.ts

+ 2 - 4
src/notebook/cells/widget.ts

@@ -315,8 +315,7 @@ class BaseCellWidget extends Widget {
    * Handle the widget receiving a new model.
    *
    * #### Notes
-   * This method should be implemented by subclasses that need to respond to
-   * the model being replaced.
+   * Subclasses may reimplement this method as needed.
    */
   protected onModelChanged(msg: Message): void {
     this.modelChanged.emit(void 0);
@@ -326,8 +325,7 @@ class BaseCellWidget extends Widget {
    * Handle changes in the model.
    *
    * #### Notes
-   * This method should be implemented by subclasses that need to respond to
-   * the model being replaced.
+   * Subclasses may reimplement this method as needed.
    */
   protected onModelStateChanged(model: ICodeCellModel, args: IChangedArgs<any>): void {
   }