소스 검색

Merge pull request #277 from ACregan/patch-1

Docs: Fixed a broken code example in the "Observables" deep–dive guide.

Thanks to [@ACregan](https://github.com/ACregan)!
Aleksander Nowodzinski 6 년 전
부모
커밋
30a939ccbd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ckeditor5-utils/docs/framework/guides/deep-dive/observables.md

+ 1 - 1
packages/ckeditor5-utils/docs/framework/guides/deep-dive/observables.md

@@ -77,7 +77,7 @@ Each time the `label` property changes, the view fires the `change:label` event
 ```js
 const view = new Button();
 
-view.on( 'change:label', ( evt, propertyName, newLabel, oldLabel ) => {
+view.on( 'change:label', ( evt, propertyName, newValue, oldValue ) => {
     console.log(
         `#${ propertyName } has changed from "${ oldValue }" to "${ newValue }"`
     );