8
0
Просмотр исходного кода

Docs: Updated UI architecture intro guide with the new View#render API.

Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
a959e79232
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      docs/framework/guides/architecture/intro.md

+ 4 - 4
docs/framework/guides/architecture/intro.md

@@ -434,18 +434,18 @@ class ParentView extends View {
 
 const parent = new ParentView( locale );
 
-parent.init();
+parent.render();
 
 // Will insert <div><input .. /><input .. /></div>.
 document.body.appendChild( parent.element );
 ```
 
-It is also possible to create standalone views that do not belong to any collection. They must be {@link module:ui/view~View#init initialized} before  injection into DOM:
+It is also possible to create standalone views that do not belong to any collection. They must be {@link module:ui/view~View#render rendered} before  injection into DOM:
 
 ```js
 const view = new SampleInputView( locale );
 
-view.init();
+view.render();
 
 // Will insert <input class="foo" type="text" placeholder="" />
 document.body.appendChild( view.element );
@@ -625,7 +625,7 @@ toolbar.items.add( buttonBar );
 The toolbar can now join the [UI tree](##View-collections-and-the-UI-tree) or it can be injected straight into DOM. To keep the example simple, proceed with the latter scenario:
 
 ```js
-toolbar.init();
+toolbar.render();
 
 document.body.appendChild( toolbar.element );
 ```