diff --git a/DOCS.md b/DOCS.md index 2103475..05fd85e 100644 --- a/DOCS.md +++ b/DOCS.md @@ -117,7 +117,7 @@ app.select("com.example"); // Добавление app.add(['']); app.draw(); -const map = app.map(); +const map = app.map(); // Или app.component() map.root // Доступ к элементу DOM map.app(); // Исходный элемент Find map.merge(); // Объединить HTML в элемент diff --git a/Find/Find.js b/Find/Find.js index 8d26530..8d01396 100644 --- a/Find/Find.js +++ b/Find/Find.js @@ -107,11 +107,7 @@ class FindObjectMap { } } -const tags = { - "mobile" : `` -} - -export default class { +export default class Find { /* Public section */ @@ -124,8 +120,8 @@ export default class { return this; } - static tags(name) { - return tags[name]; + static createApp() { + return Find; } static attach(x, f) { @@ -136,6 +132,14 @@ export default class { return ``; } + static js(text) { + return ``; + } + + static content(text) { + return text; + } + static search(name) { return document.getElementById(name); } @@ -271,6 +275,10 @@ export default class { return this; } + component() { + return this.map(); + } + title(id_, html_) { let id = undefined; let html = undefined; @@ -373,6 +381,9 @@ export default class { } map() { + if (typeof this.__id === "undefined") { + PrivateFind.findTypeError(this.__id, "number или string") + } return this._map; } diff --git a/README.md b/README.md index 512e28e..8683279 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,5 @@ cp -rv Find/* ~/Find_js cd ~/Find php -S localhost:8000 # Откройте http://localhost:8000 +# Эта страница позволит получить минифицированную версию Find.js ``` \ No newline at end of file diff --git a/index.html b/index.html index 86dfa35..8e50fa9 100644 --- a/index.html +++ b/index.html @@ -32,8 +32,9 @@
- - + + +