You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@
4
4
5
5
| Method | Description |
6
6
| :--- | :--- |
7
-
|`add(Class, root?)`| Register a class as a new custom-tag and provide options for it. |
7
+
|`add(Class)`| Register a class as a new custom-tag and provide options for it. |
8
+
|`init(root?)`| Initialize all components (optionally starating at a root node in the DOM). This is called automatically when an <App></App> component is added. |
8
9
|`escape(String)`| Escapes HTML characters from a string (based on [he][3]). |
9
10
|`sanitize(Object)`| Escapes all the strings found in an object literal. |
10
11
|`match(Node, Selector)`| Match the given node against a selector or any matching parent of the given node. This is useful when trying to locate a node from the actual node that was interacted with. |
0 commit comments