Преглед на файлове

document events are only triggerable on elements

Evan Almloff преди 1 година
родител
ревизия
b91e97ca43
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      packages/core/src/virtual_dom.rs

+ 2 - 2
packages/core/src/virtual_dom.rs

@@ -318,9 +318,9 @@ impl VirtualDom {
         }
         }
     }
     }
 
 
-    /// Call a listener inside the VirtualDom with data from outside the VirtualDom.
+    /// Call a listener inside the VirtualDom with data from outside the VirtualDom. **The ElementId passed in must be the id of an dynamic element, not a static node or a text node.**
     ///
     ///
-    /// This method will identify the appropriate element. The data must match up with the listener delcared. Note that
+    /// This method will identify the appropriate element. The data must match up with the listener declared. Note that
     /// this method does not give any indication as to the success of the listener call. If the listener is not found,
     /// this method does not give any indication as to the success of the listener call. If the listener is not found,
     /// nothing will happen.
     /// nothing will happen.
     ///
     ///